@import "titillium.css";
:root {
  --color-white: #ffffff;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-text: #1a1a1a;
  --color-heading: #0b1f3a;
  --color-border-subtle: #dddddd;
  --color-link: #0058b0;
  --color-link-hover: #003d7a;
  --color-link-strong: #17324d;
  --color-primary-rgb: 1, 105, 204;
  --color-success-rgb: 7, 173, 75;
  --color-accent-rgb: 255, 102, 0;
  --color-heading-rgb: 11, 31, 58;
  --color-focus-outline: #ffbf47;
  --color-focus-shadow: #17324d;
  --color-focus-soft: rgba(255, 191, 71, 0.55);
  --color-focus-surface: rgba(255, 191, 71, 0.18);
  --color-success-soft-surface: rgba(7, 173, 75, 0.1);
  --color-primary-soft-surface: rgba(1, 105, 204, 0.1);
  --color-primary-divider: rgba(1, 105, 204, 0.25);
  --color-on-dark-divider: rgba(255, 255, 255, 0.25);
  --color-accent-strong: #ff6600;
  --color-accent-strong-hover: #7f3200;
  --color-success-strong: #006b3f;
  --color-success-strong-hover: #004d2d;
  --color-on-accent: var(--color-white);
  --color-on-surface-strong: var(--color-white);
  --color-hero-surface: rgba(255, 255, 255, 0.12);
  --color-hero-panel-surface: rgba(255, 255, 255, 0.82);
  --color-hero-panel-text: #17324d;
  --color-badge-primary: #0058b0;
  --color-share-pdf: #dc3545;
  --color-share-facebook: #1877f2;
  --color-share-twitter: #111111;
  --color-share-telegram: #229ed9;
  --color-share-whatsapp: #25d366;
  --color-share-linkedin: #0a66c2;
  --color-share-email: #6c757d;
}
[data-theme="dark"] {
  --color-surface: #0f1720;
  --color-surface-elevated: #13202c;
  --color-text: #f5f7fa;
  --color-heading: #ffffff;
  --color-border-subtle: rgba(255, 255, 255, 0.24);
  --color-link: #7fc2ff;
  --color-link-hover: #b4dcff;
  --color-link-strong: #ffffff;
  --color-primary-rgb: 127, 194, 255;
  --color-success-rgb: 127, 193, 152;
  --color-accent-rgb: 255, 160, 122;
  --color-heading-rgb: 255, 255, 255;
  --color-focus-outline: #ffd166;
  --color-focus-shadow: #08131e;
  --color-focus-soft: rgba(255, 209, 102, 0.55);
  --color-focus-surface: rgba(255, 209, 102, 0.22);
  --color-success-soft-surface: rgba(127, 193, 152, 0.14);
  --color-primary-soft-surface: rgba(127, 194, 255, 0.16);
  --color-primary-divider: rgba(127, 194, 255, 0.28);
  --color-on-dark-divider: rgba(255, 255, 255, 0.3);
  --color-on-accent: #ffffff;
  --color-on-surface-strong: #ffffff;
  --color-hero-surface: rgba(255, 255, 255, 0.16);
  --color-hero-panel-surface: rgba(255, 255, 255, 0.86);
  --color-hero-panel-text: #17324d;
}
/* ==============================
   Base Typography & Layout
   ============================== */
body {
  font-family: "Titillium Web", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.slider {
  overflow: hidden;
  width: 100vw;
  height: 420px;
  position: relative;
  background: var(--color-surface);
  /* o un colore scuro se preferisci evitare flash bianco */
}
.slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 20s infinite;
  animation-fill-mode: both;
}
/* 4 slide = 30s / 4 = 7.5s */
.slider .slide:nth-child(1) {
  background-image: url('/wp-content/uploads/2026/02/alluvioni.jpg');
  animation-delay: 0s;
}
.slider .slide:nth-child(2) {
  background-image: url('/wp-content/uploads/2026/02/sisma.jpg');
  animation-delay: 4s;
}
.slider .slide:nth-child(3) {
  background-image: url('/wp-content/uploads/2026/02/valanghe.jpg');
  animation-delay: 8s;
}
.slider .slide:nth-child(4) {
  background-image: url('/wp-content/uploads/2026/02/incendi.jpg');
  animation-delay: 12s;
}
/* keyframe con OVERLAP: così non vedi mai “vuoto” */
@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  35% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-heading);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 0.12em;
}
a:focus-visible {
  outline: 3px solid var(--color-focus-outline);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-focus-shadow);
}
.object-fit-cover {
  object-fit: cover;
}
.mw-articles-list {
  padding-left: 0;
  list-style: none;
}
.mw-articles-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
blockquote {
  border-left: 4px solid #0169cc;
}
/* ==============================
   Ultima News
   ============================== */
#last-news .card,
#external .card {
  border-top: 5px solid #0169cc;
}
#last-news img {
  position: relative;
  object-fit: cover;
  width: 100%;
}
#last-news .card {
  background-color: #e6f7ed;
}
#last-news .card:after {
  content: "";
  display: block;
  margin-top: 0 !important;
  margin-left: 24px;
}
#external .rss_content p {
  display: none;
}
/* ==============================
   Backgrounds
   ============================== */
.bg-green {
  background-color: var(--color-success-strong) !important;
  margin-left: 1px;
}
.bg-evidence {
  background-color: var(--color-accent-strong) !important;
  margin-left: 1px;
}
/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--color-focus-outline);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-focus-shadow);
}
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn.btn-primary {
  background: #0169cc;
  color: var(--color-on-accent);
}
.btn.btn-primary:hover {
  background: #014f99;
}
.btn.btn-primary .icon {
  fill: var(--color-on-accent);
}
.btn.btn-secondary {
  background: #5a6772;
  color: var(--color-on-accent);
}
.btn.btn-secondary:hover {
  background: #444d56;
}
.btn.btn-evidence {
  background: var(--color-accent-strong) !important;
  color: var(--color-on-accent);
}
.btn.btn-evidence:hover {
  background: var(--color-accent-strong-hover) !important;
}
.btn.btn-green {
  background: var(--color-success-strong) !important;
  color: var(--color-on-accent);
}
.btn.btn-green:hover {
  background: var(--color-success-strong-hover) !important;
}
/* ==============================
   Forms
   ============================== */
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: #0169cc;
  box-shadow: 0 0 0 3px var(--color-focus-soft);
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* ==============================
   Accessibility helpers (AgID)
   ============================== */
/* Skip link: add <a class="skip-link" href="#main">Salta al contenuto</a> */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  padding: 0.75rem 1rem;
  background: #0169cc;
  color: var(--color-on-surface-strong);
  z-index: 9999;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--color-on-surface-strong);
  outline-offset: 2px;
}
/* Visually hidden (for accessible labels, hints, etc.) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[role=button]:focus,
[role=button]:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible,
.form-control:focus,
.form-control:focus-visible,
.navbar-toggler:focus,
.navbar-toggler:focus-visible,
.btn-close:focus,
.btn-close:focus-visible,
.nav-link:focus,
.nav-link:focus-visible,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.list-item:focus,
.list-item:focus-visible,
.search-link:focus,
.search-link:focus-visible,
.mw-action-link:focus,
.mw-action-link:focus-visible {
  outline: 3px solid var(--color-focus-outline);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-focus-shadow);
}
.mw-action-link:focus,
.mw-action-link:focus-visible,
.card a:focus,
.card a:focus-visible,
.read-more:focus,
.read-more:focus-visible {
  outline: 3px solid var(--color-focus-outline);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-focus-shadow);
}
/* ==============================
   Form patterns (AgID)
   ============================== */
/* Works with Bootstrap Italia / Bootstrap form controls */
.form-control,
.form-select {
  font-family: inherit;
}
/* Error state helpers (use with aria-invalid="true" and an error message) */
[aria-invalid="true"] {
  border-color: #5a6772;
}
.form-error {
  color: #5a6772;
  font-weight: 600;
  margin-top: 0.25rem;
}
/* ==============================
   Sovrascrive Bootstrap Italia
   ============================== */
.it-header-navbar-wrapper {
  background-color: #0169cc;
  border-bottom: 1px solid #ffffff;
}
.it-header-slim-wrapper {
  background: #0169cc;
}
.it-header-slim-wrapper a {
  color: #ffffff !important;
}
.it-header-slim-wrapper a:hover,
.it-header-slim-wrapper a:focus-visible {
  color: #ffffff !important;
  text-decoration: underline;
}
/* Mobile */
@media (max-width: 991.98px) {
  .it-header-navbar-wrapper {
    background-color: transparent;
    border-bottom: 0;
  }
  .navbar .navbar-collapsable.show {
    display: block;
    background-color: var(--color-surface-elevated) !important;
    top: 30px;
    position: relative;
  }
  .it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper {
    position: relative !important;
    display: inline-block;
    top: -44px;
    left: -10px;
    width: 100%;
  }
}
.navbar .navbar-collapsable .navbar-nav li.nav-item a.nav-link,
.navbar .navbar-collapsable .navbar-nav li.nav-item button.nav-link {
  padding: 12px 18px;
  line-height: 1.5;
}
#menu-principale.navbar-nav > li > a,
#menu-menu-header-dx.navbar-nav > li > a,
.dropdown-menu .dropdown-item,
.link-list a,
#site-footer a,
.read-more,
.btn,
.it-socials a,
.search-link {
  line-height: 1.5;
}
#menu-principale.navbar-nav > li > a,
#menu-menu-header-dx.navbar-nav > li > a,
.dropdown-menu .dropdown-item,
#site-footer #menu-menu-footer.navbar-nav a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
}
#menu-principale.navbar-nav > li > a:hover,
#menu-principale.navbar-nav > li > a:focus,
#menu-principale.navbar-nav > li > a:focus-visible,
#menu-menu-header-dx.navbar-nav > li > a:hover,
#menu-menu-header-dx.navbar-nav > li > a:focus,
#menu-menu-header-dx.navbar-nav > li > a:focus-visible,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus-visible,
#site-footer #menu-menu-footer.navbar-nav a:hover,
#site-footer #menu-menu-footer.navbar-nav a:focus,
#site-footer #menu-menu-footer.navbar-nav a:focus-visible {
  text-decoration-color: currentColor;
}
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus-visible,
.btn-close:focus,
.btn-close:focus-visible,
.custom-navbar-toggler:focus,
.custom-navbar-toggler:focus-visible,
.close-div:focus,
.close-div:focus-visible {
  background-color: var(--color-focus-surface);
  border-radius: 4px;
}
#menu-principale .active {
  color: #ffffff !important;
  font-weight: 700;
}
#menu-principale.navbar-nav > .current-page-ancestor > a {
  color: var(--color-on-surface-strong);
  font-weight: 700;
  border-bottom: 3px solid var(--color-on-surface-strong);
}
#menu-principale .dropdown-menu .menu-item {
  border-bottom: 1px solid var(--color-primary-divider);
}
#menu-principale .dropdown-menu .menu-item a {
  color: var(--color-link-strong) !important;
}
#menu-principale .dropdown-menu .menu-item a:active {
  color: #1a1a1a;
}
#menu-principale .dropdown-menu .menu-item.current-menu-item,
#menu-principale .dropdown-menu .menu-item.current_page_item,
#menu-principale .dropdown-menu .menu-item.current-page-ancestor {
  color: #0169cc;
  font-weight: 700;
}
#menu-principale .dropdown-menu .menu-item.current-menu-item a,
#menu-principale .dropdown-menu .menu-item.current_page_item a,
#menu-principale .dropdown-menu .menu-item.current-page-ancestor a,
#menu-principale .dropdown-menu .menu-item.current-menu-item a.active,
#menu-principale .dropdown-menu .menu-item.current_page_item a.active,
#menu-principale .dropdown-menu .menu-item.current-page-ancestor a.active {
  color: #0169cc !important;
  font-weight: 700;
}
@media (min-width: 992px) {
  .slider {
    height: 660px;
  }
  .navbar .navbar-collapsable .navbar-nav {
    padding: 0 0;
  }
  .it-header-navbar-wrapper .navbar-collapsable,
  .it-header-navbar-wrapper .navbar-nav-wrapper {
    overflow: visible;
  }
  .it-header-navbar-wrapper .dropdown-menu {
    z-index: 1050;
  }
}
.it-hero-wrapper .img-responsive-wrapper {
  opacity: 0.15;
}
.it-hero-wrapper,
.it-hero-wrapper a {
  color: #ffffff !important;
}
.it-hero-wrapper .contacts,
.it-hero-wrapper a .contacts,
.it-hero-wrapper .competenza,
.it-hero-wrapper a .competenza {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem;
  background-color: var(--color-hero-panel-surface);
  border-left: 4px solid #ffffff;
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(2px);
  color: var(--color-hero-panel-text) !important;
}
.it-hero-wrapper .contacts a,
.it-hero-wrapper a .contacts a,
.it-hero-wrapper .competenza a,
.it-hero-wrapper a .competenza a,
.it-hero-wrapper .contacts p,
.it-hero-wrapper a .contacts p,
.it-hero-wrapper .competenza p,
.it-hero-wrapper a .competenza p,
.it-hero-wrapper .contacts span,
.it-hero-wrapper a .contacts span,
.it-hero-wrapper .competenza span,
.it-hero-wrapper a .competenza span,
.it-hero-wrapper .contacts li,
.it-hero-wrapper a .contacts li,
.it-hero-wrapper .competenza li,
.it-hero-wrapper a .competenza li,
.it-hero-wrapper .contacts strong,
.it-hero-wrapper a .contacts strong,
.it-hero-wrapper .competenza strong,
.it-hero-wrapper a .competenza strong,
.it-hero-wrapper .contacts h1,
.it-hero-wrapper a .contacts h1,
.it-hero-wrapper .competenza h1,
.it-hero-wrapper a .competenza h1,
.it-hero-wrapper .contacts h2,
.it-hero-wrapper a .contacts h2,
.it-hero-wrapper .competenza h2,
.it-hero-wrapper a .competenza h2,
.it-hero-wrapper .contacts h3,
.it-hero-wrapper a .contacts h3,
.it-hero-wrapper .competenza h3,
.it-hero-wrapper a .competenza h3,
.it-hero-wrapper .contacts h4,
.it-hero-wrapper a .contacts h4,
.it-hero-wrapper .competenza h4,
.it-hero-wrapper a .competenza h4,
.it-hero-wrapper .contacts h5,
.it-hero-wrapper a .contacts h5,
.it-hero-wrapper .competenza h5,
.it-hero-wrapper a .competenza h5,
.it-hero-wrapper .contacts h6,
.it-hero-wrapper a .contacts h6,
.it-hero-wrapper .competenza h6,
.it-hero-wrapper a .competenza h6 {
  color: var(--color-hero-panel-text) !important;
}
.it-hero-wrapper .competenza h2,
.it-hero-wrapper a .competenza h2 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.it-hero-wrapper .competenza ul,
.it-hero-wrapper a .competenza ul {
  margin-bottom: 0;
}
.it-hero-wrapper .competenza li + li,
.it-hero-wrapper a .competenza li + li {
  margin-top: 0.35rem;
}
#site-footer {
  line-height: 1.6;
}
#site-footer h1,
#site-footer h2,
#site-footer h3,
#site-footer h4,
#site-footer h5,
#site-footer h6 {
  color: #ffffff !important;
}
#site-footer a {
  color: #ffffff !important;
}
#site-footer a:hover,
#site-footer a:focus-visible {
  color: #ffffff !important;
}
#site-footer ul {
  list-style-type: none;
  padding-left: 0;
}
#site-footer ul li a {
  text-decoration: underline !important;
  border-bottom: 1px solid var(--color-on-dark-divider);
  display: block;
  padding: 0.5rem 0;
}
#site-footer #menu-menu-footer.navbar-nav {
  flex-direction: unset;
}
#site-footer #menu-menu-footer.navbar-nav li {
  padding: 0 15px;
}
#site-footer #menu-menu-footer.navbar-nav li:first-child {
  padding-left: 0;
}
#site-footer .it-footer-main img {
  padding: 0.5rem;
  background-color: #ffffff;
}
#site-footer .it-footer-small-prints a.active {
  color: #ffffff;
  font-weight: 700;
}
#site-footer .mw {
  width: 32px;
}
#last-news .card-title a,
#news-grid .card-title a,
#external .card a:not(.btn),
.card-title a,
.card-body a.text-decoration-none,
.read-more {
  color: var(--color-link-strong) !important;
}
.acf-child-pages .card-teaser {
  min-height: 15.5rem;
}
.acf-child-pages .card-body {
  height: 100%;
}
#last-news .badge.bg-primary {
  background-color: var(--color-badge-primary) !important;
  color: var(--color-on-accent) !important;
}
.modal-title,
.link-list li,
.navbar-nav li,
.dropdown-menu li,
.it-socials ul li {
  line-height: 1.5;
}
.search-link,
.it-socials a {
  text-decoration: none;
}
.search-link:hover,
.search-link:focus,
.search-link:focus-visible,
.it-socials a:hover,
.it-socials a:focus,
.it-socials a:focus-visible {
  text-decoration: underline;
}
.link-list a.active,
.link-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration-color: currentColor !important;
  position: relative;
}
.link-list a.active::before,
.link-list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: currentColor;
}
/* ==============================
   Motion preferences
   ============================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Freccia giù sulle voci con sottovoci */
.it-header-navbar-wrapper .navbar-nav .menu-item-has-children > a {
  position: relative;
  padding-right: 1.75rem;
  /* spazio per freccia */
}
.it-header-navbar-wrapper .navbar-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  /* chevron down */
  vertical-align: 0.1em;
  opacity: 0.9;
}
/* Se il link ha aria-expanded, ruota in su quando è aperto */
.it-header-navbar-wrapper .navbar-nav .menu-item-has-children > a[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}
/* ==============================
   Sidebar: navigazione di sezione (AgID clean)
   ============================== */
/* ==============================
   Sidebar: navigazione di sezione (AgID clean)
   - 1° livello: is-child
   - 2° livello: is-grandchild
   - 3+ livello: is-greatgrandchild
   ============================== */
aside.page-sidebar .navbar {
  background-color: #ffffff;
}
aside.page-sidebar .page-widget-area .widget {
  padding: 1.1rem 1.15rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.75rem;
  box-shadow: 0 0.35rem 1.25rem rgba(16, 24, 40, 0.06);
}
aside.page-sidebar .page-widget-area .widget + .widget {
  margin-top: 1rem;
}
aside.page-sidebar .page-widget-area .widget-title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--color-primary-divider);
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
aside.page-sidebar .page-widget-area .widget_recent_entries ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
aside.page-sidebar .page-widget-area .widget_recent_entries li {
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
aside.page-sidebar .page-widget-area .widget_recent_entries li:first-child {
  padding-top: 0;
}
aside.page-sidebar .page-widget-area .widget_recent_entries li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
aside.page-sidebar .page-widget-area .widget_recent_entries a {
  display: inline-block;
  color: var(--color-link-strong);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
aside.page-sidebar .page-widget-area .widget_recent_entries a:hover,
aside.page-sidebar .page-widget-area .widget_recent_entries a:focus,
aside.page-sidebar .page-widget-area .widget_recent_entries a:focus-visible {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}
aside.page-sidebar .page-widget-area .widget_recent_entries .post-date {
  display: block;
  margin-top: 0.35rem;
  color: #5c6f82;
  font-size: 0.85rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
aside.page-sidebar .link-list {
  /* Spaziatura lista */
  /* Link base */
  /* ==========================
       1° livello (pagine principali)
       ========================== */
  /* ==========================
       2° livello
       ========================== */
  /* ==========================
       3°+ livello
       ========================== */
  /* ==========================
   4° livello
   ========================== */
  /* Se hai più livelli, continua a rientrare progressivamente */
  /* ==========================
       Pagina attiva (sobria)
       Nota: non deve "rompere" i rientri
       ========================== */
  /* Linea attiva come pseudo-elemento (non altera padding/indent) */
}
aside.page-sidebar .link-list li {
  margin-bottom: 0.25rem;
}
aside.page-sidebar .link-list a {
  display: block;
  padding: 0.35rem 0;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s ease;
}
aside.page-sidebar .link-list a:hover {
  text-decoration: underline;
}
aside.page-sidebar .link-list li.is-child > a {
  font-weight: 600;
  font-size: 1rem;
  color: #0169cc;
  margin-top: 0.5rem;
}
aside.page-sidebar .link-list li.is-grandchild {
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid #d0d7de;
}
aside.page-sidebar .link-list li.is-grandchild > a {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  padding: 0.25rem 0;
}
aside.page-sidebar .link-list li.is-greatgrandchild {
  padding-left: 2.25rem;
  /* 1.25 + 1.0 */
  margin-left: 0.5rem;
  border-left: 1px solid #d0d7de;
}
aside.page-sidebar .link-list li.is-greatgrandchild > a {
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.85;
  padding: 0.2rem 0;
}
aside.page-sidebar .link-list li.is-greatgreatgrandchild {
  padding-left: 3.25rem;
  /* ancora più rientrato */
  margin-left: 0.5rem;
  border-left: 1px solid rgba(208, 215, 222, 0.7);
}
aside.page-sidebar .link-list li.is-greatgreatgrandchild > a {
  font-size: 0.9rem;
  opacity: 0.8;
  padding: 0.2rem 0;
}
aside.page-sidebar .link-list li.is-greatgrandchild.is-greatgrandchild {
  /* no-op: placeholder to keep specificity predictable */
}
aside.page-sidebar .link-list a.active,
aside.page-sidebar .link-list a[aria-current="page"] {
  font-weight: 600;
  color: #0169cc;
  background: transparent;
  position: relative;
}
aside.page-sidebar .link-list a.active::before,
aside.page-sidebar .link-list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: #0169cc;
}
.widget-area .widget_recent_entries {
  padding: 1.1rem 1.15rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.75rem;
  box-shadow: 0 0.35rem 1.25rem rgba(16, 24, 40, 0.06);
}
.widget-area .widget_recent_entries ul.wp-block-latest-posts,
.widget-area .widget_recent_entries ul.wp-block-latest-posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.widget-area .widget_recent_entries li {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.widget-area .widget_recent_entries li:first-child {
  padding-top: 0;
}
.widget-area .widget_recent_entries li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.widget-area .widget_recent_entries .wp-block-latest-posts__featured-image {
  margin: 0 0 0.75rem;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--color-primary-soft-surface);
  aspect-ratio: 16 / 9;
}
.widget-area .widget_recent_entries .wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-area .widget_recent_entries .wp-block-latest-posts__post-title,
.widget-area .widget_recent_entries a {
  display: inline-block;
  color: var(--color-link-strong);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.widget-area .widget_recent_entries .wp-block-latest-posts__post-title:hover,
.widget-area .widget_recent_entries .wp-block-latest-posts__post-title:focus,
.widget-area .widget_recent_entries .wp-block-latest-posts__post-title:focus-visible,
.widget-area .widget_recent_entries a:hover,
.widget-area .widget_recent_entries a:focus,
.widget-area .widget_recent_entries a:focus-visible {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}
.widget-area .widget_recent_entries .wp-block-latest-posts__post-date,
.widget-area .widget_recent_entries .post-date {
  display: block;
  margin-top: 0.35rem;
  color: #5c6f82;
  font-size: 0.85rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wp-block-media-text > .wp-block-media-text__content,
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
  padding: 0 0;
}
.wp-block-image.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
  /* spazio tra testo e immagine */
  max-width: 50%;
  /* opzionale: evita che mangi tutta la riga */
}
.wp-block-image.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 50%;
}
.mw-action-link {
  text-decoration: none !important;
}
.mw-action-link .mw-share-icon {
  width: 1.5em !important;
  height: 1.5em !important;
  vertical-align: -0.15em;
}
.mw-share-pdf svg {
  color: var(--color-share-pdf);
  fill: var(--color-share-pdf) !important;
}
.mw-share-facebook svg {
  color: var(--color-share-facebook);
  fill: var(--color-share-facebook) !important;
}
.mw-share-twitter svg {
  color: var(--color-share-twitter);
  fill: var(--color-share-twitter) !important;
}
.mw-share-telegram svg {
  color: var(--color-share-telegram);
  fill: var(--color-share-telegram) !important;
}
.mw-share-whatsapp svg {
  color: var(--color-share-whatsapp);
  fill: var(--color-share-whatsapp) !important;
}
.mw-share-linkedin svg {
  color: var(--color-share-linkedin);
  fill: var(--color-share-linkedin) !important;
}
.mw-share-email svg {
  color: var(--color-share-email);
  fill: var(--color-share-email) !important;
}
/*# sourceMappingURL=custom.css.map */