:root {
  --fv-navy:       #0e2740;
  --fv-navy-soft:  #1d3b5c;
  --fv-blue:       #2a66a0;   /* brand blue (darker #5d91bf, readable) */
  --fv-blue-dark:  #1c4d7c;
  --fv-blue-light: #5d91bf;   /* the site's original blue, for accents */
  --fv-ice:        #eef4f9;
  --fv-snow:       #ffffff;
  --fv-red:        #c4122f;

  --fv-text:       #1b2430;
  --fv-text-soft:  #4a5565;
  --fv-text-muted: #677180;
  --fv-line:       #dde5ee;

  --fv-font-head: "Saira Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --fv-font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --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:    1240px;
  --fv-pad:    16px;          /* page side padding */
  --fv-gap:    24px;          /* space between cards */
}


/* 02. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;     /* full-width header/footer backgrounds never cause sideways scrolling */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--fv-ice);
  color: var(--fv-text);
  font-family: var(--fv-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html body.custom-background { background-color: var(--fv-ice); }   /* beats the theme's inline white */

img { max-width: 100%; height: auto; border-style: none; vertical-align: middle; }

figure { margin: 0 0 1em; }

embed, iframe, object { max-width: 100%; }

hr {
  box-sizing: content-box;
  height: 1px;
  border: 0;
  background: var(--fv-line);
  margin: 2rem 0;
}

ul, ol { margin: 0 0 1.5em; padding-left: 1.5em; }
li > ul, li > ol { margin-bottom: 0; }

dt { font-weight: 700; }
dd { margin: 0 1.5em 1.5em; }

b, strong { font-weight: 700; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }

pre {
  max-width: 100%;
  overflow: auto;
  padding: 1.2em;
  background: #f3f6f9;
  border-radius: var(--fv-radius);
  font-family: Monaco, Consolas, "Courier New", monospace;
  font-size: .9375rem;
}

code, kbd, samp, tt, var { font-family: Monaco, Consolas, "Courier New", monospace; font-size: .9375em; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

mark, ins { background: #fff4c2; text-decoration: none; }

button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  line-height: 1.4;
}

button { cursor: pointer; }

[hidden], template { display: none; }

details { display: block; }
summary { display: list-item; cursor: pointer; }

/* Hidden SVG filter definitions WordPress prints at the top of <body> */
body > svg[width="0"] { position: absolute !important; width: 0; height: 0; overflow: hidden; }

/* WordPress helpers */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; clear: both; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption-text, .wp-element-caption, figcaption {
  font-size: .8125rem;
  color: var(--fv-text-muted);
  text-align: center;
  margin-top: .5em;
}
.updated:not(.published) { display: none; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Emoji images */
img.wp-smiley, img.emoji {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 .07em !important;
  vertical-align: -.1em !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}


/* 03. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fv-font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fv-navy);
  margin: 0 0 .6em;
  clear: none;
  float: none;
  display: block;
  width: auto;
}

h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em; }

p { margin: 0 0 1.1em; }

dfn, cite, em, i { font-style: italic; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  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);
}

address { margin: 0 0 1.5em; font-style: normal; }

::selection { background: var(--fv-blue); color: #fff; }


/* 04. Links
   -------------------------------------------------------------------------- */
a {
  color: var(--fv-blue);
  text-decoration: none;
  background-color: transparent;
  transition: color var(--fv-dur) var(--fv-ease), background-color var(--fv-dur) var(--fv-ease);
}

a:hover, a:focus { color: var(--fv-blue-dark); }

/* Underline links in written content */
.single .entry-content p a,
.page .entry-content p a,
.entry-content li a,
.textwidget p a:not(:has(img)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* PDF label on document links */
.single .entry-content a[href$=".pdf"]:not(:has(img))::after,
.page .entry-content a[href$=".pdf"]:not(:has(img))::after {
  content: "PDF";
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--fv-font-head);
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--fv-red);
  border-radius: 3px;
  vertical-align: 2px;
  text-decoration: none;
}


/* 05. Containers
   -------------------------------------------------------------------------- */
.grid-container {
  width: 100%;
  max-width: var(--fv-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--fv-pad);
  padding-right: var(--fv-pad);
}

/* Screen-reader-only text */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  top: 10px;
  left: 10px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto !important;
  clip-path: none;
  padding: 12px 18px;
  background: var(--fv-navy);
  color: #fff;
  border-radius: var(--fv-radius);
  font-weight: 700;
}


/* 06. Header & desktop menu
   -------------------------------------------------------------------------- */
.navigation-wrapper,
body .navigation-wrapper {
  position: relative;
  z-index: 50;
  background: var(--fv-snow);
  border-top: 4px solid var(--fv-navy);
  box-shadow: 0 2px 10px rgba(14, 39, 64, .06);
}

.navigation-wrapper > .grid-container { max-width: var(--fv-max); }

#masthead.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: 84px;
  margin: 0;
}

#masthead .site-branding {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: center;
}

#masthead .custom-logo-link {
  display: inline-block;
  padding: 12px 0;
  margin: 0;
  float: none;
}

#masthead .custom-logo {
  display: block;
  width: auto;
  max-height: 64px;
}

/* Text title is hidden when a logo is used */
.site-title, .site-description, .logo-container {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#masthead .main-navigation {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
  clear: none;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
  float: none;
  list-style: none;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Top level */
#primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  float: none;
}

#primary-menu > li > a {
  position: relative;
  padding: 30px 13px;
  font-family: var(--fv-font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fv-navy);
}

/* Red bar under hovered / current item */
#primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--fv-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--fv-dur) var(--fv-ease);
}

#primary-menu > li > a:hover::after,
#primary-menu > li > a:focus-visible::after,
#primary-menu > li.current-menu-item > a::after,
#primary-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a { color: var(--fv-blue); }

/* Small arrow on items with a dropdown (drawn in CSS, no icon font) */
#primary-menu > li.menu-item-has-children > a { padding-right: 26px; }

#primary-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .6;
}

@media (max-width: 1180px) and (min-width: 1024px) {
  #primary-menu > li > a { padding-left: 9px; padding-right: 9px; font-size: .875rem; }
  #primary-menu > li.menu-item-has-children > a { padding-right: 22px; }
  #primary-menu > li > a::before { right: 7px; }
  #primary-menu > li > a::after { left: 9px; right: 9px; }
}


/* 07. Dropdown menus (desktop)
   -------------------------------------------------------------------------- */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: block;
  min-width: 250px;
  padding: 8px 0;
  float: none;
  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);
  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;
}

#masthead .main-navigation ul ul { background: var(--fv-snow); }   /* beats the theme's inline blue */

/* 3rd level opens to the side */
.main-navigation ul ul ul {
  top: -9px;
  left: 100%;
  border-top-width: 1px;
  border-left: 3px solid var(--fv-blue);
  border-radius: 0 var(--fv-radius) var(--fv-radius) 0;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul,
.main-navigation li.focus > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.main-navigation ul ul li { width: 100%; }

.main-navigation ul ul a {
  width: 100%;
  padding: 8px 18px;
  font-family: var(--fv-font-body);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fv-text);
  text-transform: none;
  letter-spacing: 0;
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus-visible,
.main-navigation ul ul .current-menu-item > a {
  background: var(--fv-ice);
  color: var(--fv-blue);
}

/* Arrow on items that open a 3rd level */
.main-navigation ul ul .menu-item-has-children > a {
  position: relative;
  padding-right: 32px;
}

.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;
}

/* Last 3 top items: 3rd-level menus open to the left so they stay on screen */
@media (min-width: 1024px) {
  #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);
  }

  #primary-menu > li:nth-last-child(-n+2) > ul {
    left: auto;
    right: 0;
  }
}


/* 08. Mobile menu (<1024px)
   Without scripts there is no burger button, so the main sections show
   as a row of pills you can swipe sideways. If the theme's script adds
   its slide-in menu (#iot-menu-left), the pills hide and that menu is used.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  #masthead.site-header {
    min-height: 0;
    padding: 4px 0 10px;
  }

  #masthead .site-branding { flex: 1 1 100%; justify-content: center; }

  #masthead .custom-logo { max-height: 54px; }

  #masthead .main-navigation { flex: 1 1 100%; }

  #primary-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #primary-menu::-webkit-scrollbar { display: none; }

  #primary-menu > li { flex: 0 0 auto; }

  #primary-menu > li > a,
  #primary-menu > li.menu-item-has-children > a {
    padding: 9px 16px;
    font-size: .875rem;
    white-space: nowrap;
    border: 1px solid var(--fv-line);
    border-radius: 999px;
    background: var(--fv-ice);
  }

  #primary-menu > li > a::after,
  #primary-menu > li > a::before { display: none; }

  #primary-menu > li.current-menu-item > a {
    background: var(--fv-navy);
    border-color: var(--fv-navy);
    color: #fff;
  }

  /* Sub-menus aren't used on phones: the section pages list them */
  #primary-menu ul { display: none; }

  /* Theme script menu present → use it instead of the pills */
  body:has(.iot-menu-left-open) #primary-menu { display: none; }
}

/* The theme's slide-in menu (added by its script) */
.iot-menu-left-open {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 1023.98px) {
  .iot-menu-left-open { display: block; }
}

#iot-menu-left,
body #iot-menu-left {
  position: fixed;
  top: 0;
  left: -280px;
  z-index: 1000;
  width: 280px;
  height: 100%;
  overflow-y: auto;
  background: var(--fv-navy);
  box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
  transition: left .25s var(--fv-ease);
}

.iot-menu-left-filter {
  position: fixed;
  top: 0;
  left: -100%;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
}

.iot-menu-left-ul,
.iot-menu-left-ul ul { list-style: none; margin: 0; padding: 0; }

.iot-menu-left-ul a {
  display: block;
  padding: 12px 20px;
  font-family: var(--fv-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.iot-menu-left-ul ul a {
  padding-left: 36px;
  font-family: var(--fv-font-body);
  font-size: .9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .8);
}

.iot-menu-left-ul a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.iot-menu-left-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: 0;
}


/* 09. News pages layout (home, categories, search) — card grid
   The page's wrappers are "unwrapped" (display: contents) so every
   article becomes a card in one grid, wherever it sits in the HTML.
   -------------------------------------------------------------------------- */
body.blog,
body.archive,
body.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--fv-gap);
  max-width: var(--fv-max);
  margin: 0 auto;
  padding: 0 var(--fv-pad) 0;
}

body.blog > #page,
body.archive > #page,
body.search-results > #page,
body.blog #content.site-content,
body.archive #content.site-content,
body.search-results #content.site-content,
body.blog #primary.content-area,
body.archive #primary.content-area,
body.search-results #primary.content-area,
body.blog #primary > main,
body.archive #primary > main,
body.search-results #primary > main {
  display: contents;
}

/* Full-width rows */
body.blog > .navigation-wrapper,
body.archive > .navigation-wrapper,
body.search-results > .navigation-wrapper,
body.blog .pagination,
body.archive .pagination,
body.search-results .pagination,
body.blog #secondary,
body.archive #secondary,
body.search-results #secondary,
body.blog .footer-container,
body.archive .footer-container,
body.search-results .footer-container,
body.archive .page-header,
body.search-results .page-header {
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  flex: none;
}

/* Header and footer backgrounds stretch to the screen edges */
body.blog > .navigation-wrapper,
body.archive > .navigation-wrapper,
body.search-results > .navigation-wrapper {
  border-top: 0;
  box-shadow: none;
}

body.blog > .navigation-wrapper::after,
body.archive > .navigation-wrapper::after,
body.search-results > .navigation-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vmax;
  right: -100vmax;
  z-index: -1;
  background: var(--fv-snow);
  box-shadow: 0 2px 10px rgba(14, 39, 64, .06);
}

body.blog > .navigation-wrapper > .grid-container,
body.archive > .navigation-wrapper > .grid-container,
body.search-results > .navigation-wrapper > .grid-container { padding-left: 0; padding-right: 0; }

body.blog > .navigation-wrapper::before,
body.archive > .navigation-wrapper::before,
body.search-results > .navigation-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100vmax;
  right: -100vmax;
  height: 4px;
  background: var(--fv-navy);
}

body.blog .footer-container,
body.archive .footer-container,
body.search-results .footer-container {
  box-shadow: 0 0 0 100vmax var(--fv-navy);
  clip-path: inset(0 -100vmax);
}

/* Banners Complianz / Weglot sit outside the grid */
#cmplz-cookiebanner-container,
#cmplz-manage-consent { display: contents; }

/* Title of archive / search pages */
.page-header .page-title,
.archive h1.page-title,
.search-results h1.page-title,
.search-no-results h1.page-title {
  margin: 0;
  padding-left: 1rem;
  border-left: 5px solid var(--fv-red);
}

.page-header .archive-description { color: var(--fv-text-soft); max-width: 70ch; margin-top: .5rem; }


/* 10. Post cards
   -------------------------------------------------------------------------- */
body.blog article.post,
body.archive article.post,
body.search-results article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  transition: transform var(--fv-dur) var(--fv-ease), box-shadow var(--fv-dur) var(--fv-ease);
}

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 .wp-post-image,
body.archive article .wp-post-image,
body.search-results article .wp-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  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 text */
.article-contents {
  position: static;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
}

.article-contents .entry-header { margin-bottom: .75rem; }

body.blog .entry-meta,
body.archive .entry-meta,
body.search-results .entry-meta {
  margin: 0 0 .4rem;
  font-family: var(--fv-font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fv-red);
}

body.blog .entry-title,
body.archive .entry-title,
body.search-results .entry-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

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. font-size: 0 hides the loose "Condividi" word printed after it */
.article-contents .entry-content {
  margin-top: auto;
  font-size: 0;
}

.article-contents .entry-content > a {
  display: block;
  font-size: .9375rem;
  color: var(--fv-text-soft);
  text-decoration: none;
}

.article-contents .entry-content p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--fv-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Share buttons don't belong in cards (and are empty until cookies are accepted) */
.article-contents .addtoany_share_save_container { display: none; }


/* 11. Featured (sticky) post: full width, image beside the text
   -------------------------------------------------------------------------- */
body.blog article.sticky {
  grid-column: 1 / -1;
  border-top: 4px solid var(--fv-red);
}

body.blog article.sticky .entry-meta::before { content: "In evidenza · "; }

@media (min-width: 900px) {
  body.blog article.sticky { flex-direction: row; }

  body.blog article.sticky > a:first-child {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 340px;
  }

  body.blog article.sticky .article-contents {
    justify-content: center;
    padding: 2rem 2.25rem;
  }

  body.blog article.sticky .entry-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

  body.blog article.sticky .article-contents .entry-content { margin-top: 0; }
}


/* 12. Pagination
   -------------------------------------------------------------------------- */
.navigation.pagination,
nav.navigation.pagination {
  display: block;
  width: 100%;
  margin: .5rem 0 1rem;
  text-align: center;
  float: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-links .page-numbers,
.nav-links > a,
.nav-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  font-family: var(--fv-font-head);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fv-navy);
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: 999px;
  box-shadow: none;
  opacity: 1;
}

.nav-links a:hover,
.nav-links .page-numbers.current,
.pagination .current {
  color: #fff;
  background: var(--fv-navy);
  border-color: var(--fv-navy);
}

.nav-links .page-numbers.dots { background: transparent; border-color: transparent; }

/* Previous / next post */
.post-navigation .nav-links,
.posts-navigation .nav-links,
.comment-navigation .nav-links { justify-content: space-between; }

.post-navigation .nav-links a,
.posts-navigation .nav-links a {
  height: auto;
  max-width: 48%;
  padding: 12px 20px;
  border-radius: var(--fv-radius);
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}


/* 13. Single posts & pages (content + sidebar layout)
   -------------------------------------------------------------------------- */
body:not(.blog):not(.archive):not(.search-results) #page.site {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

body:not(.blog):not(.archive):not(.search-results) #content.site-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--fv-gap);
  margin: 0;
}

body:not(.blog):not(.archive):not(.search-results) #primary.content-area {
  flex: 1 1 560px;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0;
}

body:not(.blog):not(.archive):not(.search-results) #secondary.widget-area {
  flex: 0 1 340px;
  width: auto;
  max-width: 100%;
  padding: 0;
}

/* Article box */
.single .site-main > article,
.page .site-main > article,
.error-404,
.no-results {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  margin-bottom: var(--fv-gap);
}

.single .site-main > article .wp-post-image,
.page .site-main > article .wp-post-image,
.post-thumbnail img {
  display: block;
  width: calc(100% + 2 * clamp(1.25rem, 3vw, 2rem));
  max-width: none;
  height: auto;
  margin: calc(-1 * clamp(1.25rem, 3vw, 2rem)) calc(-1 * clamp(1.25rem, 3vw, 2rem)) 1.5rem;
}

.post-thumbnail { width: 100%; text-align: center; }

.single .thumbnail-below,
.page .thumbnail-below { display: block; }

.single .entry-title,
.page .entry-title { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem); margin-bottom: .5rem; }

.single .entry-meta,
.single .entry-meta * {
  font-family: var(--fv-font-head);
  font-size: .9375rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fv-red);
}

.single .entry-meta { margin-bottom: 1.25rem; }

.single .entry-content,
.page .entry-content,
.single .entry-content p,
.page .entry-content p,
.single .entry-content li,
.page .entry-content li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fv-text);
}

.entry-content h2, .entry-content h3 { margin-top: 1.6em; }

.entry-content ul li::marker { color: var(--fv-blue); }

.entry-content img { border-radius: var(--fv-radius); }

/* Categories & tags */
.cat-links a,
.tags-links a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 12px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--fv-blue);
  background: var(--fv-ice);
  border: 1px solid var(--fv-line);
  border-radius: 999px;
}

.cat-links a:hover,
.tags-links a:hover { color: #fff; background: var(--fv-blue); border-color: var(--fv-blue); }

/* Share buttons on single posts */
.single .addtoany_share_save_container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fv-line);
}

.a2a_kit a { display: inline-block; margin-right: 6px; }

/* 404 and no results */
.error-404, .no-results { text-align: center; }
.error-404 .search-form, .no-results .search-form { margin: 1.5rem auto 0; }


/* 14. Comments, related posts, author box
   -------------------------------------------------------------------------- */
#comments { margin-top: 2.5rem; }

.comments-title,
.comment-reply-title,
.related-posts h3 {
  margin: 2rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fv-line);
  font-size: 1.5rem;
  text-align: left;
}

.comment-list,
.comments-area ol.comment-list { list-style: none; margin: 0; padding: 0; }

.comments-area ol.children { list-style: none; margin-left: 1.5rem; padding: 0; }

.comment-body {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem 1rem 5rem;
  background: var(--fv-ice);
  border-radius: var(--fv-radius);
}

.comments-area img.avatar {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.comments-area b.fn,
.comments-area b.fn * { font-weight: 700; color: var(--fv-navy); }

.comments-area .comment-metadata time { font-size: .75rem; color: var(--fv-text-muted); }

.comments-area .comment-content { margin-top: .5rem; }

.comments-area .reply { font-size: .8125rem; }

.comments-area a.comment-edit-link { font-size: .75rem; margin-left: 8px; }

.says { display: none; }

.comment-respond { text-align: left; }

.comment-respond label { display: block; margin-bottom: 4px; }

.comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: 1rem; }

@media (min-width: 800px) {
  .comment-form { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .comment-form > * { flex: 1 1 100%; }
  .comment-form-author, .comment-form-email, .comment-form-url { flex: 1 1 30%; }
}

.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; }

.form-submit { margin-top: .5rem; }

/* Related posts */
.related-posts.blog { background: transparent; margin-bottom: 0; }

.related-posts main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-posts.blog main article {
  margin: 0;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  overflow: hidden;
  box-shadow: none;
}

.related-posts img { display: block; width: 100%; margin: 0; }

.blog.related-posts main article h4 { margin: 0; padding: .75rem 1rem; }

.blog.related-posts main article h4 a { font-size: 1rem; line-height: 1.35; color: var(--fv-navy); }

/* Author box */
.about-the-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--fv-ice);
  border-radius: var(--fv-radius);
  border: 0;
}

.about-the-author img { border-radius: 50%; }

.about-the-author h3 { margin: 0 0 .25rem; font-size: 1.125rem; }


/* 15. Tables, TablePress, calendar
   -------------------------------------------------------------------------- */
table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; }

.entry-content table,
.wp-block-table table,
.tablepress {
  font-size: .9375rem;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  overflow: hidden;
}

.entry-content th,
.tablepress thead th,
.tablepress tfoot th,
.single .content-area th,
.page .content-area th {
  padding: 10px 14px;
  font-family: var(--fv-font-head);
  font-weight: 700;
  text-align: left;
  color: #fff;
  background: var(--fv-navy);
  border: 0;
}

.entry-content td,
.tablepress tbody td {
  padding: 10px 14px;
  vertical-align: top;
  color: var(--fv-text);
  border: 0;
  border-bottom: 1px solid var(--fv-line);
}

.tablepress .odd td,
.entry-content tbody tr:nth-child(odd) td { background: #f7fafd; }

.tablepress .row-hover tr:hover td,
.entry-content tbody tr:hover td { background: var(--fv-ice); }

.dataTables_wrapper .dataTables_filter input { width: auto; padding: 6px 10px; }

.dataTables_wrapper .paginate_button {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border-radius: var(--fv-radius-sm);
  cursor: pointer;
}

.dataTables_wrapper .paginate_button.current { background: var(--fv-navy); color: #fff; }

/* Calendar widget */
div#calendar_wrap,
.wp-block-calendar { width: 100%; max-width: 100%; overflow: hidden; }

.wp-calendar-table { margin: 0; text-align: center; font-size: .875rem; }

.wp-calendar-table caption {
  padding-bottom: .5rem;
  font-family: var(--fv-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
}

.wp-calendar-table th { padding: 6px 0; font-family: var(--fv-font-head); font-weight: 700; opacity: .7; border: 0; background: none; }

.wp-calendar-table td { padding: 3px; border: 0; }

.wp-calendar-table td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: var(--fv-blue);
}

.wp-calendar-table td a:hover { background: var(--fv-red); color: #fff; }

.wp-calendar-table #today { font-weight: 700; outline: 2px solid var(--fv-red); outline-offset: -2px; border-radius: 50%; }

.wp-calendar-nav { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .875rem; }


/* 16. Team members (Consiglio, Commissioni, Squadre pages)
   -------------------------------------------------------------------------- */
.tmm .tmm_member {
  padding: 1.5rem;
  text-align: center;
  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);
}

.tmm .tmm_photo { margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 4px var(--fv-ice); }

.tmm .tmm_names { margin-top: .75rem; font-family: var(--fv-font-head); font-size: 1.15rem; font-weight: 700; color: var(--fv-navy); }

.tmm .tmm_job { font-family: var(--fv-font-head); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fv-red); }

.tmm .tmm_desc { font-size: .9375rem; color: var(--fv-text-soft); text-align: center; }


/* 17. Sidebar widgets
   On news pages the sidebar sits under the cards as a multi-column area.
   -------------------------------------------------------------------------- */
#secondary.widget-area {
  font-size: .9375rem;
  margin: 0;
  padding: 0;
}

body.blog #secondary,
body.archive #secondary,
body.search-results #secondary {
  columns: 300px;
  column-gap: var(--fv-gap);
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fv-line);
}

#secondary .widget,
.widget {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 var(--fv-gap);
  padding: 1.25rem;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  break-inside: avoid;
  page-break-inside: avoid;
}

#secondary .widget * { line-height: 1.6; }

/* Widgets nested inside page-builder widgets: no double box */
.widget .widget,
#secondary .widget .widget {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.panel-layout, .panel-grid, .panel-grid-cell { margin: 0; padding: 0; }
.so-panel { margin-bottom: 0; }

#secondary .widget-title,
#secondary h4.widget-title,
#secondary h3.widget-title {
  position: relative;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  font-family: var(--fv-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fv-navy);
  border-bottom: 2px solid var(--fv-ice);
}

#secondary .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background: var(--fv-red);
}

/* "Segreteria" contact text */
#secondary .widget_text .textwidget p { margin: 0; color: var(--fv-text-soft); }

#secondary .textwidget p:last-child { margin-bottom: 0; }

/* Empty paragraphs typed with &nbsp; */
.textwidget p:empty { display: none; }

/* Menu & category list widgets */
#secondary ul,
.widget ul { list-style: none; margin: 0; padding: 0; float: none; width: 100%; }

#secondary ul li { display: block; width: 100%; margin: 0; }

#secondary .widget_nav_menu li a,
#secondary .widget_categories li a,
#secondary .widget_recent_entries li a,
#secondary .widget_archive li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 8px 0;
  font-weight: 600;
  color: var(--fv-text);
  border-bottom: 1px solid var(--fv-line);
}

#secondary .widget_nav_menu li:last-child a { border-bottom: 0; }

#secondary .widget_nav_menu li a::after,
#secondary .widget_categories li a::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  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);
}

#secondary .widget_nav_menu li a:hover { color: var(--fv-blue); }
#secondary .widget_nav_menu li a:hover::after { transform: translateX(3px) rotate(45deg); }

/* One-link menu widgets ("Articoli per Disciplina", Fondo, Biathlon…):
   compact link cards */
#secondary .widget_siteorigin-panels-builder,
#secondary > .widget_nav_menu {
  padding: .5rem 1.25rem;
  margin-bottom: 10px;
}

#secondary .widget_siteorigin-panels-builder:has(.widget-title) { padding-top: 1.25rem; }

/* Title-only widgets ("Scarica l'App" …) followed by their image */
#secondary .widget_sow-editor:has(.textwidget:empty) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  border-radius: var(--fv-radius-lg) var(--fv-radius-lg) 0 0;
  break-after: avoid;
}

#secondary .widget_sow-editor:has(.textwidget:empty) .widget-title { margin-bottom: 0; border-bottom: 0; }
#secondary .widget_sow-editor:has(.textwidget:empty) .widget-title::after { display: none; }

#secondary .widget_sow-editor:has(.textwidget:empty) + .widget {
  border-top: 0;
  border-radius: 0 0 var(--fv-radius-lg) var(--fv-radius-lg);
  break-before: avoid;
}

/* Completely empty widgets */
#secondary .widget_sow-editor:not(:has(.widget-title)):has(.textwidget:empty) { display: none; }

/* Linked agenda covers */
.siteorigin-widget-tinymce img.aligncenter { border-radius: var(--fv-radius-sm); box-shadow: var(--fv-shadow); }

/* Archive / category dropdowns */
.widget select { width: 100%; max-width: 100%; }

/* Social icon images (Social Media Feather) */
.widget_synved_social_follow > div { display: flex; flex-wrap: wrap; gap: 10px; }

.widget_synved_social_follow img.synved-social-image {
  width: 36px !important;          /* beats inline 24px */
  height: 36px !important;
  border-radius: 50%;
  transition: transform var(--fv-dur) var(--fv-ease);
}

.widget_synved_social_follow img.synved-social-image:hover { transform: translateY(-2px); }

.synved-social-resolution-hidef { display: none; }

/* Recent posts widgets (rpwwt / spbrposts) */
#secondary .rpwwt-widget li,
li.spbrposts-li { margin: 10px 0; }

#secondary .rpwwt-post-title,
#secondary h3.spbrposts-title a { font-size: .9375rem; font-weight: 700; color: var(--fv-navy); }

#secondary .rpwwt-post-date { font-size: .75rem; color: var(--fv-text-muted); }

/* Block social links */
.wp-block-social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

.wp-block-social-links li { margin: 0; padding: 0; }

.wp-block-social-links a { display: inline-flex; padding: .3em; color: #fff; border-radius: 50%; }


/* 18. Sponsor logos (image widgets)
   -------------------------------------------------------------------------- */
#secondary .widget_sow-image,
#secondary .widget_media_image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1rem;
}

.sow-image-container,
#secondary .widget_media_image .wp-block-image,
#secondary .widget_media_image figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  float: none;
}

#secondary .widget_sow-image img,
#secondary .widget_media_image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  transition: transform var(--fv-dur) var(--fv-ease);
}

/* Tall promo images (app, cards, banners) keep their size */
#secondary .widget_sow-image img[height="571"],
#secondary .widget_sow-image img[height="186"],
#secondary .widget_sow-image img[height="322"] { max-height: none; }

#secondary .widget_sow-image:hover img,
#secondary .widget_media_image:hover img { transform: scale(1.03); }


/* 19. Forms & search
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select,
.so-widget-sow-contact-form .sow-contact-form .sow-form-field input,
.so-widget-sow-contact-form .sow-contact-form .sow-form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--fv-text);
  background: var(--fv-snow);
  border: 1px solid #c6d2df;
  border-radius: var(--fv-radius-sm);
  box-shadow: none;
  transition: border-color var(--fv-dur), box-shadow var(--fv-dur);
}

textarea { min-height: 140px; resize: vertical; }

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;
}

input::placeholder,
textarea::placeholder { color: var(--fv-text-muted); opacity: 1; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fv-blue);
  box-shadow: 0 0 0 3px rgba(42, 102, 160, .18);
}

label {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--fv-font-head);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--fv-navy);
}

input[type="checkbox"],
input[type="radio"] { width: 18px; height: 18px; accent-color: var(--fv-blue); }

/* Search form: input + button side by side */
form.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.search-form label { flex: 1; margin: 0; }

input.search-field,
.search-form .search-field {
  height: 100%;
  max-width: none;
  margin: 0;
  padding-left: 16px;
  border-radius: 999px;
  border: 1px solid #c6d2df;
  float: none;
}

input.search-submit,
.search-form .search-submit {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  border-radius: 999px;
}

/* SiteOrigin contact form */
.so-widget-sow-contact-form .sow-form-field { margin-bottom: 1rem; }
.so-widget-sow-contact-form .sow-form-field label strong { font-weight: 700; }
.sow-field-container { display: block; }

.sow-contact-form-success { padding: .75rem 1rem; border-radius: var(--fv-radius); background: #e7f4ec; color: #1e5e36; }
.sow-error { color: var(--fv-red); }

/* Contact Form 7 */
.wpcf7 p:last-of-type { text-align: center; }
input.wpcf7-submit { padding: 14px 30px; font-size: 1.0625rem; }


/* 20. Buttons
   -------------------------------------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
.wp-block-button__link,
.wp-block-search__button,
.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;
  padding: 12px 22px;
  font-family: var(--fv-font-head);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--fv-blue);
  background-image: none;
  border: 2px solid var(--fv-blue);
  border-radius: var(--fv-radius-sm);
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
  transition: background-color var(--fv-dur), border-color var(--fv-dur), transform var(--fv-dur);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover,
.so-widget-sow-contact-form .sow-submit-wrapper.sow-submit-styled button.sow-submit:hover {
  color: #fff;
  background: var(--fv-navy);
  border-color: var(--fv-navy);
}

button:active,
input[type="submit"]:active,
a.button:active { transform: translateY(1px); }

/* Buttons from plugins that must keep their own look */
.cmplz-close,
.iot-menu-left-close,
.iot-menu-left-open,
.owl-dot,
.owl-prev,
.owl-next {
  padding: 0;
  background: none;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}

.blog-post-button-wrapper { margin-top: 1.25rem; text-align: center; }

.blog-post-button-wrapper .blog-button,
.owl-item .slideshow-button {
  display: inline-block;
  padding: 13px 30px;
  font-weight: 700;
  color: #fff;
  background: var(--fv-blue);
  border-radius: 999px;
}


/* 21. Footer
   -------------------------------------------------------------------------- */
.footer-container {
  display: block;
  float: none;
  width: 100%;
  margin-top: 1rem;
  background: var(--fv-navy);
  color: rgba(255, 255, 255, .78);
  border-top: 4px solid var(--fv-red);
}

.footer-container #page.site {
  display: block;
  max-width: var(--fv-max);
  margin: 0 auto;
  padding: 3rem var(--fv-pad) 0;
}

body.blog .footer-container #page.site,
body.archive .footer-container #page.site,
body.search-results .footer-container #page.site { padding-left: 0; padding-right: 0; }

.site-footer { color: rgba(255, 255, 255, .78); text-align: left; }

.footer-widgets-container {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding-bottom: 1.5rem;
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-widget-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-widget-three .footer-column {
  flex: none;
  width: auto;
  max-width: none;
  overflow: visible;
}

.footer-column .widget,
.site-footer .widget {
  float: none;
  margin: 0 0 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  break-inside: auto;
}

.footer-widgets-container h4,
.footer-widgets-container h3,
.site-footer .widget-title {
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--fv-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  border: 0;
}

.footer-column *,
.footer-column p,
.footer-column li { font-size: .9375rem; line-height: 1.7; color: rgba(255, 255, 255, .78); }

.footer-column a,
.site-footer a { color: #9cc3e6; }

.footer-column a:hover,
.site-footer a:hover { color: #fff; }

.footer-container ul { list-style: none; margin: 0; padding: 0; }
.footer-container li { margin: 4px 0; }

.footer-column .widget_nav_menu li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }

/* Form controls on dark */
.site-footer select,
.site-footer input[type="search"],
.site-footer input[type="text"] {
  color: #fff;
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}

.site-footer select {
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
}

.site-footer select option { color: var(--fv-text); }

.site-footer input::placeholder { color: rgba(255, 255, 255, .6); }

.site-footer input[type="submit"] { background: var(--fv-red); border-color: var(--fv-red); }
.site-footer input[type="submit"]:hover { background: #fff; border-color: #fff; color: var(--fv-navy); }

.site-footer form.search-form { margin-top: 1rem; }

/* Calendar on dark */
.site-footer .wp-calendar-table,
.site-footer .wp-calendar-table caption,
.site-footer .wp-calendar-table th,
.site-footer .wp-calendar-table td { color: rgba(255, 255, 255, .85); background: transparent; }

.site-footer .wp-calendar-table td a { background: var(--fv-blue-light); color: #fff; }
.site-footer .wp-calendar-table td a:hover { background: var(--fv-red); }

/* Bottom bar */
.site-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  float: none;
  width: 100%;
  padding: 1.25rem 0 1.5rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .55);
}

.site-info a { color: rgba(255, 255, 255, .85); }

span.footer-info-right { opacity: .7; }

.footer-menu { display: inline-flex; gap: 1rem; float: none; width: auto; }
.footer-menu:empty { display: none; }
.footer-menu li { display: inline-block; float: none; }
.footer-menu li a { margin: 0; color: #fff; font-weight: 600; }


/* 22. Cookie banner (Complianz) — complete styles in case the plugin's
   own banner CSS doesn't load. Hidden until the plugin shows it.
   -------------------------------------------------------------------------- */
.cmplz-hidden { display: none !important; }

.cmplz-cookiebanner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: grid;
  gap: 12px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  font-family: var(--fv-font-body);
  font-size: .875rem;
  line-height: 1.55;
  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 .cmplz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cmplz-cookiebanner .cmplz-logo:empty { display: none; }

.cmplz-cookiebanner .cmplz-title {
  font-family: var(--fv-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fv-navy);
}

.cmplz-cookiebanner .cmplz-close {
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--fv-text-muted);
  cursor: pointer;
}

.cmplz-cookiebanner .cmplz-close svg { width: 14px; height: 14px; }

.cmplz-cookiebanner .cmplz-divider { display: none; }

/* Categories only show after "Visualizza le preferenze" */
.cmplz-cookiebanner .cmplz-categories { display: none; gap: 8px; }
.cmplz-cookiebanner .cmplz-categories.cmplz-fade-in { display: grid; }

.cmplz-cookiebanner .cmplz-category {
  padding: 10px 12px;
  background: var(--fv-ice);
  border-radius: var(--fv-radius);
}

.cmplz-cookiebanner .cmplz-category summary {
  list-style: none;
  display: block;
}

.cmplz-cookiebanner .cmplz-category summary::-webkit-details-marker { display: none; }

.cmplz-cookiebanner .cmplz-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--fv-navy);
}

.cmplz-cookiebanner .cmplz-category-title { flex: 1; }

.cmplz-cookiebanner .cmplz-always-active { font-size: .75rem; font-weight: 600; color: var(--fv-blue); }

.cmplz-cookiebanner .cmplz-banner-checkbox label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cmplz-cookiebanner .cmplz-icon svg { width: 14px; height: 14px; transition: transform .2s; }
.cmplz-cookiebanner details[open] .cmplz-icon svg { transform: rotate(180deg); }

.cmplz-cookiebanner .cmplz-description { margin-top: 6px; font-size: .8125rem; color: var(--fv-text-soft); }

.cmplz-cookiebanner .cmplz-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--fv-text-muted); }
.cmplz-cookiebanner .cmplz-link { color: var(--fv-blue); text-decoration: underline; }

/* Links the plugin hasn't filled in yet ("{title}") and TCF-only items */
.cmplz-cookiebanner .cmplz-link[data-relative_url=""],
.cmplz-cookiebanner .tcf,
.cmplz-cookiebanner .cmplz-information { display: none; }

.cmplz-cookiebanner .cmplz-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmplz-cookiebanner .cmplz-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  font-family: var(--fv-font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fv-navy);
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-sm);
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  color: #fff;
  background: var(--fv-blue);
  border-color: var(--fv-blue);
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background: var(--fv-navy); border-color: var(--fv-navy); }

.cmplz-cookiebanner .cmplz-btn:not(.cmplz-accept):hover { background: var(--fv-ice); color: var(--fv-navy); }

/* "Save preferences" only once the categories are open */
.cmplz-cookiebanner .cmplz-save-preferences { display: none; }
.cmplz-cookiebanner:has(.cmplz-categories.cmplz-fade-in) .cmplz-save-preferences { display: inline-flex; }
.cmplz-cookiebanner:has(.cmplz-categories.cmplz-fade-in) .cmplz-view-preferences { display: none; }

/* "Gestisci consenso" tab */
#cmplz-manage-consent .cmplz-manage-consent {
  position: fixed;
  right: 24px;
  bottom: 0;
  z-index: 9998;
  padding: 8px 14px;
  font-family: var(--fv-font-head);
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--fv-navy);
  border: 0;
  border-radius: 8px 8px 0 0;
}

@media (max-width: 575.98px) {
  .cmplz-cookiebanner { right: 8px; left: 8px; bottom: 8px; width: auto; }
}


/* 23. Language switcher (Weglot) — works with CSS only:
   click "Italiano" to open the list
   -------------------------------------------------------------------------- */
.country-selector.weglot-dropdown {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  min-width: 130px;
  font-family: var(--fv-font-head);
  font-size: .875rem;
  font-weight: 700;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  box-shadow: var(--fv-shadow);
}

.country-selector .weglot_choice {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.country-selector .wgcurrent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  font-family: inherit;
  font-size: inherit;
  color: var(--fv-navy);
  cursor: pointer;
}

.country-selector .wgcurrent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg) translate(-1px, 1px);
}

.country-selector ul {
  display: none;
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 100%;
  margin: 0 0 4px;
  padding: 4px 0;
  list-style: none;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  box-shadow: var(--fv-shadow);
}

.country-selector .weglot_choice:checked ~ ul,
.country-selector:focus-within ul { display: block; }

.country-selector ul a {
  display: block;
  padding: 8px 14px;
  color: var(--fv-navy);
}

.country-selector ul a:hover { background: var(--fv-ice); }

@media (max-width: 575.98px) {
  .country-selector.weglot-dropdown { left: 8px; bottom: 8px; min-width: 0; }
}


/* 24. Slider & landing-page sections (theme extras)
   -------------------------------------------------------------------------- */
.owl-carousel { position: relative; }
.owl-nav { display: none; }

.owl-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 5; text-align: center; }

.owl-theme .owl-dots .owl-dot span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span { background: var(--fv-red); border-color: var(--fv-red); }

.owl-item { background-size: cover; background-position: center; text-align: center; }

.slider-content { width: 100%; padding: 120px var(--fv-pad) 130px; text-align: center; }

.owl-item h3 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem); color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }

.owl-item p { font-size: 1.0625rem; font-weight: 600; color: #fff; }

.slideshow-logo { width: auto !important; height: auto !important; max-width: 100%; margin: 0 auto 10px; }

/* Landing-page template sections */
.blog-section-wrapper { display: flex; flex-direction: column; }
.sitebuilder-section { order: 1; background: var(--fv-ice); }
.grid-section { order: 2; width: 100%; padding: 60px 0; text-align: center; }
.about-section { order: 3; width: 100%; padding: 70px 0; text-align: center; }
.blog-section-wrapper .blog { order: 4; }

.about-section h2 { font-size: clamp(1.875rem, 1.2rem + 2.5vw, 3rem); }
.about-section h2::after { content: ""; display: block; width: 100px; height: 3px; margin: 20px auto 0; background: var(--fv-red); }
.about-tagline { display: block; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 300; opacity: .8; }

.landing-page-description { width: 100%; text-align: center; }
.page-template-landing-page-design .start-container-head { display: none; }


/* Remaining wrapper classes from WordPress and plugins.
   They need no special look; listed here so every class on the page
   is accounted for. */
.menu-top-menu-container,
[class$="-container"][class^="menu-"],
.panel-no-style,
.so-widget-sow-editor,
.so-widget-sow-editor-base,
.so-widget-sow-image,
.fp-blog-grid { display: block; }

.so-widget-image { display: block; margin: 0 auto; }

.sub-menu { list-style: none; }

.sow-form-field-label-above { display: block; }
.sow-text-field { width: 100%; }

.postform { width: 100%; }

.widget_search form.search-form,
.widget_sow-contact-form form { max-width: none; }

.widget_block > :last-child,
.widget_calendar > :last-child { margin-bottom: 0; }

.wp-calendar-table .pad { background: none; }
.wp-calendar-nav-prev a,
.wp-calendar-nav-next a { font-weight: 700; }

.nav-links .next::after { content: " →"; }
.nav-links .prev::before { content: "← "; }

/* AddToAny share buttons (filled in by the plugin's script) */
.addtoany_content,
.addtoany_content_bottom { clear: both; margin: 1rem 0 0; }
.addtoany_list,
.a2a_kit_size_16 { display: flex; flex-wrap: wrap; gap: 6px; line-height: 16px; }
.addtoany_list:empty { display: none; }

/* Social icon images */
.synved-share-image,
.synved-social-image-follow { display: inline-block; vertical-align: middle; }

/* Complianz banner parts */
.cmplz-cookiebanner .cmplz-body,
.cmplz-cookiebanner .cmplz-message { display: block; }
.cmplz-cookiebanner .cmplz-divider-header,
.cmplz-cookiebanner .cmplz-footer { display: none; }
.cmplz-cookiebanner .cookie-statement,
.cmplz-cookiebanner .privacy-statement,
.cmplz-cookiebanner .impressum { white-space: nowrap; }
#cmplz-manage-consent .manage-consent-1 { cursor: pointer; }

/* Weglot parts (flag sprites need the plugin's CSS; names show without it) */
.weglot-default,
.weglot-lang,
.weglot-language,
.wg-li { list-style: none; }
.weglot-flags { background-image: none; }
.wglanguage-name { display: inline; }
.country-selector .it { text-transform: none; }

/* Structured data block: never visible */
script.yoast-schema-graph { display: none; }


/* 25. Utilities, accessibility, print
   -------------------------------------------------------------------------- */
.fv-card {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  padding: 1.5rem;
}

.fv-badge {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--fv-font-head);
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--fv-blue);
  border-radius: 999px;
}

a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
[tabindex]:focus-visible,
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 { outline: 3px solid var(--fv-blue-light); outline-offset: 3px; }

.entry-title a:focus-visible { outline: none; }

#content[tabindex="-1"]:focus { outline: 0; }

@media (max-width: 639.98px) {
  body.blog, body.archive, body.search-results { --fv-gap: 16px; }

  .article-contents { padding: 1rem 1.25rem 1.25rem; }

  .entry-content table, .tablepress { display: block; overflow-x: auto; }

  .site-info { flex-direction: column; text-align: center; }

  .post-navigation .nav-links a { max-width: 100%; }

  .comment-body { padding-left: 1.25rem; padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  article:hover, article:hover .wp-post-image { transform: none !important; }
}

@media print {
  .navigation-wrapper,
  #secondary,
  .footer-container,
  .addtoany_share_save_container,
  #cmplz-cookiebanner-container,
  #cmplz-manage-consent,
  .country-selector,
  .pagination,
  .post-navigation { display: none !important; }

  body, body.blog { display: block; background: #fff; color: #000; }

  body.blog article.post { break-inside: avoid; box-shadow: none; margin-bottom: 1rem; }
}

/* 26. Foundation grid classes (grid-x, cell, small-/medium-/large-N)
   The theme's header and layout use these; foundation.css isn't needed.
   -------------------------------------------------------------------------- */
.grid-x { display: flex; flex-flow: row wrap; }
.cell { flex: 0 0 auto; width: 100%; min-width: 0; min-height: 0; }
.cell.auto { flex: 1 1 0; }
.cell.shrink { flex: 0 0 auto; width: auto; }
.grid-padding-x { margin-left: -.625rem; margin-right: -.625rem; }
.grid-padding-x > .cell { padding-left: .625rem; padding-right: .625rem; }
.small-1 { width: 8.3333%; }
.small-2 { width: 16.6667%; }
.small-3 { width: 25%; }
.small-4 { width: 33.3333%; }
.small-5 { width: 41.6667%; }
.small-6 { width: 50%; }
.small-7 { width: 58.3333%; }
.small-8 { width: 66.6667%; }
.small-9 { width: 75%; }
.small-10 { width: 83.3333%; }
.small-11 { width: 91.6667%; }
.small-12 { width: 100%; }
@media print, screen and (min-width: 40em) {
  .medium-1 { width: 8.3333%; }
  .medium-2 { width: 16.6667%; }
  .medium-3 { width: 25%; }
  .medium-4 { width: 33.3333%; }
  .medium-5 { width: 41.6667%; }
  .medium-6 { width: 50%; }
  .medium-7 { width: 58.3333%; }
  .medium-8 { width: 66.6667%; }
  .medium-9 { width: 75%; }
  .medium-10 { width: 83.3333%; }
  .medium-11 { width: 91.6667%; }
  .medium-12 { width: 100%; }
  .grid-padding-x { margin-left: -.9375rem; margin-right: -.9375rem; }
  .grid-padding-x > .cell { padding-left: .9375rem; padding-right: .9375rem; }
}
@media print, screen and (min-width: 64em) {
  .large-1 { width: 8.3333%; }
  .large-2 { width: 16.6667%; }
  .large-3 { width: 25%; }
  .large-4 { width: 33.3333%; }
  .large-5 { width: 41.6667%; }
  .large-6 { width: 50%; }
  .large-7 { width: 58.3333%; }
  .large-8 { width: 66.6667%; }
  .large-9 { width: 75%; }
  .large-10 { width: 83.3333%; }
  .large-11 { width: 91.6667%; }
  .large-12 { width: 100%; }
}