/* Regole originali del tema */
:root {
	--font-size: 1rem;
}

::marker {
	color: var(--contrast);
}
h1,h2,h3,h4,h5 {
	margin-bottom: 0.5rem;
}
@media(max-width:1200px) {
	.hide-mobile {
		display: none !important;
	}
}
@media(min-width:1200px) {
	.hide-desktop {
		display: none !important;
	}
}
/*header */
.header {
	background: var(--muted-border-color);
	padding: 1rem 0;
	border-bottom: solid 1px var(--muted-border-color);
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
.header-mobile-btn {
	width: 50px;
	height: 50px;
	padding: 0.4rem;
	margin: 0;
}
.header-mobile-btn img {
	width: 100%;
	height: 100%;
	filter: invert(100%)
}
.header-logo {
	margin: 0;
	padding: 0;
	font-size: 1.5rem;
	font-style: italic;
}
.header-grid {
	align-items: center;
}
.header-nav a {
	color: var(--contrast);
}
.header-nav .current a {
	color: #fff;
}
/*added dropdown */
.header-nav li {
	padding: 10px;
}
.header-nav .subMenu {
	position: absolute;
	background: var(--primary-hover);
	max-width: 200px;
	animation: fadeIn 250ms linear;
	border-radius: var(--border-radius);
	display: none;
	flex-direction: column;
	text-align: left;
	padding: 0 !important;
	margin-top: 10px;
	margin-left: 0 !important;
	color:#fff;
}
.header-nav .subMenu li {
	width: 100%;
	margin: 0;
}
.header-nav .subMenu li a {
	width: 100%;
	text-align: left;
	margin: 0;
	padding: 10px;
	color:#fff;
}
.subMenu a:hover {
	background: rgba(0, 0, 0, 0.2)
}
.subMenu li {
	margin: 0;
	padding: 0;
}
.subMenu a {
	margin: 0;
}
@media(max-width:1200px) {
	.header-nav .subMenu {
		position: relative;
		max-width: unset;
		width: 100% !important;
	}
}
@media(min-width:1200px) {
	.header-nav li:hover .subMenu {
		display: flex;
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
/*end edit */
@media(min-width:1200px) {
	.header {
		padding: 3rem 0;
	}
}
@media(max-width:1200px) {
	.header-grid {
		flex-wrap: wrap;
	}
	.header-nav {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 0;
		margin-right: 0 !important;
		margin-left: 0 !important;
		margin-top: 20px;
	}
	.header-nav li {
		width: 100%;
		padding: 8px 0;
		margin: 0;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}
	.header-nav a {
		width: 100%;
		text-align: left;
		padding: 15px;
		margin: 0;
	}
	.header-nav .wSub {
		display: flex;
		padding: 0;
	}
	.header-nav .wSub a {
		width: calc(90% - 12px);
	}
	.header-nav .wSub .showDropdown {
		width: 10%;
		display: flex;
		align-self: center;
		justify-content: center;
		align-items: stretch;
		padding: 14px;
		margin-left: 12px;
	}
	.header-nav a {
		padding: 8px;
	}
	.header-nav .wSub a[role="button"] {
		padding: 8px;
	}
	.header-nav a[role="button"] {
		margin-left: 0;
		margin-right: 0;
		padding: inherit;
		padding: 8px;
	}
}
/*content and aside */
.content {
	padding: 2rem 0;
	padding-bottom: 0;
}
.content-grid {
	display: grid;
	grid-column: 1fr;
	margin: 2rem 0;
	gap: 1.3rem;
}
@media(min-width:1200px) {
	.content-grid {
		grid-template-columns: 9fr 3fr;
	}
}
.content-sidebar ul::marker {
	color: #000;
}
.content-sidebar h2 {
	margin-bottom: 10px;
}
.content-title {
	padding-bottom: 1rem;
	border-bottom: solid 1px var(--muted-border-color);
}
.content-sidebar h2 {
	padding-bottom: 10px;
	border-bottom: solid 1px var(--muted-border-color);
	margin-bottom: 20px;
	display: block;
}
.content-sidebar ul {
	list-style-type: square !important;
	background: var(--primary);
	color: #fff;
	line-height: 1;
	border-radius: 5px;
	list-style-type: square;
}
@media(min-width:1200px) {
	.content-sidebar {
		margin-top: 2.7rem;
	}
}
.content-main img {
	margin-bottom: 1.3rem;
	border-radius: 0.2rem;
}
.content-main nav[aria-label="breadcrumb"] li {
	padding: 0 0.5rem;
}
.content-main nav[aria-label="breadcrumb"] a {
	color: var(--muted-color);
}
/*footer */
.footer-grid {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}
@media(max-width:1200px) {
	.footer-grid {
		flex-direction: column;
	}
}
/*grid variant */
@media(min-width:1200px) {
	.content-grid-left {
		grid-template-columns: 3fr 9fr;
	}
	.content-grid-left .content-sidebar {
		order: 1;
	}
	.content-grid-left .content-main {
		order: 2;
	}
	.content-grid-nosidebar {
		grid-template-columns: 1fr;
	}
}
.content-grid-nosidebar .content-sidebar {
	display: none;
}

/* Animazioni originali conservate */

    :root {
        --speed: 18s;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        min-height: 100%;
        margin: 0;
    }

    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* =========================================================
       SFONDO FULLSCREEN
       Colori che ruotano continuamente in un loop perfettamente
       ciclico. Nessuna immagine esterna e nessun JavaScript.
       ========================================================= */

    .animated-background {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        overflow: hidden;
        z-index: -1;
        background: #b9d5c0;
    }

    /* Grande campo cromatico principale */
    .animated-background::before {
        content: "";
        position: absolute;
        inset: -35%;
        width: 170%;
        height: 170%;

        background:
            radial-gradient(
                ellipse 42% 38% at 18% 76%,
                rgba(246, 205, 116, 0.95) 0%,
                rgba(246, 205, 116, 0.55) 24%,
                transparent 68%
            ),
            radial-gradient(
                ellipse 45% 42% at 82% 20%,
                rgba(0, 180, 222, 0.95) 0%,
                rgba(0, 180, 222, 0.52) 25%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 48% 44% at 56% 58%,
                rgba(74, 202, 180, 0.75) 0%,
                rgba(74, 202, 180, 0.30) 35%,
                transparent 72%
            ),
            radial-gradient(
                ellipse 35% 40% at 30% 20%,
                rgba(142, 188, 177, 0.75) 0%,
                transparent 70%
            );

        filter: blur(65px) saturate(1.12);
        transform-origin: center;
        animation:
            colorRotation var(--speed) linear infinite,
            organicMovement 12s ease-in-out infinite alternate;
    }

    /* Secondo livello per creare movimento cromatico indipendente */
    .animated-background::after {
        content: "";
        position: absolute;
        inset: -30%;
        width: 160%;
        height: 160%;

        background:
            radial-gradient(
                ellipse 36% 42% at 12% 35%,
                rgba(226, 211, 146, 0.60) 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 40% 38% at 88% 70%,
                rgba(0, 205, 225, 0.62) 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 42% 38% at 48% 18%,
                rgba(105, 210, 191, 0.48) 0%,
                transparent 72%
            );

        filter: blur(95px);
        mix-blend-mode: screen;
        transform-origin: center;
        animation:
            colorRotationReverse 26s linear infinite,
            organicMovement2 16s ease-in-out infinite alternate;
    }

    /* Rotazione continua dei colori.
       360 -> 720 -> 1080... evita qualsiasi salto cromatico. */
    @keyframes colorRotation {
        0% {
            transform: rotate(0deg) scale(1.04);
            filter: blur(65px) saturate(1.12) hue-rotate(0deg);
        }

        25% {
            transform: rotate(90deg) scale(1.08);
            filter: blur(65px) saturate(1.15) hue-rotate(25deg);
        }

        50% {
            transform: rotate(180deg) scale(1.04);
            filter: blur(65px) saturate(1.12) hue-rotate(0deg);
        }

        75% {
            transform: rotate(270deg) scale(1.08);
            filter: blur(65px) saturate(1.15) hue-rotate(-25deg);
        }

        100% {
            transform: rotate(360deg) scale(1.04);
            filter: blur(65px) saturate(1.12) hue-rotate(0deg);
        }
    }

    @keyframes colorRotationReverse {
        0% {
            transform: rotate(0deg) scale(1.08);
            filter: blur(95px) hue-rotate(0deg);
        }

        50% {
            transform: rotate(-180deg) scale(1.14);
            filter: blur(95px) hue-rotate(35deg);
        }

        100% {
            transform: rotate(-360deg) scale(1.08);
            filter: blur(95px) hue-rotate(0deg);
        }
    }

    @keyframes organicMovement {
        0% {
            margin-left: -2%;
            margin-top: 2%;
        }

        50% {
            margin-left: 4%;
            margin-top: -3%;
        }

        100% {
            margin-left: -1%;
            margin-top: 4%;
        }
    }

    @keyframes organicMovement2 {
        0% {
            margin-left: 3%;
            margin-top: -2%;
        }

        50% {
            margin-left: -4%;
            margin-top: 4%;
        }

        100% {
            margin-left: 2%;
            margin-top: -3%;
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .animated-background {
            height: 100dvh;
        }

        .animated-background::before {
            filter: blur(48px) saturate(1.12);
        }

        .animated-background::after {
            filter: blur(68px);
        }
    }

    /* Accessibilità */
    @media (prefers-reduced-motion: reduce) {
        .animated-background::before,
        .animated-background::after {
            animation: none;
        }
    }
    
/* Stile Onda Metis */
/* Colori e dimensioni del template */
:root {
  --blue: #00638a;
  --wine: #732c3f;
  --ink: #202124;
  --cream: #f1ebd2;
  --page-width: 1200px;
  --stripe-height: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; border-radius: 0; }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 600; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #caa366;
  outline-offset: 4px;
}

/* Menu superiore sticky */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--stripe-height) solid var(--blue);
  background: linear-gradient(
    25deg, #51202d 0%, #732c3f 30%, #873b50 48%,
    #873b50 52%, #732c3f 70%, #51202d 100%
  );
}
.header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--stripe-height);
  pointer-events: none;
  background: linear-gradient(
    45deg,
    transparent calc(45% - 14px),
    rgba(255, 255, 255, .12) calc(45% - 7px),
    rgba(255, 255, 255, .45) 45%,
    rgba(255, 255, 255, .12) calc(45% + 7px),
    transparent calc(45% + 14px)
  );
}
.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--page-width);
  height: 68px;
  margin: auto;
  padding: 0 20px;
}
.logo {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 60;
  width: 142px;
  transition: opacity .2s, transform .2s;
}
.logo img { width: 100%; object-fit: contain; }
.wordmark {
  position: absolute;
  left: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
}
.header.scrolled .logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-25px);
}
.header.scrolled .wordmark { opacity: 1; visibility: visible; }
.header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding-left: 190px;
  color: #fff;
}
.header nav a {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.header nav a:hover, .header nav a:focus-visible { color: #caa366; }
.header nav .contact { margin-left: auto; }
.menu-toggle { display: none; }

/* Area bianca per i contenuti del CMS */
.page {
  width: 100%;
  max-width: var(--page-width);
  margin: auto;
  padding: 0 20px 35px;
  background: #fff;
}
.page-content {
  min-height: 600px;
  padding: 95px 0 40px;
  overflow-wrap: anywhere;
}
.page-content h1 { margin: 0 0 24px; font-size: 34px; line-height: 1.25; }
.page-content h2 { margin: 30px 0 16px; font-size: 27px; line-height: 1.3; }
.page-content h3 { margin: 24px 0 12px; font-size: 22px; line-height: 1.4; }
.page-content p { margin: 0 0 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px; padding-left: 25px; }
.page-content a { color: var(--blue); text-decoration: underline; }
.page-content a:hover { color: var(--wine); }
.page-content figure { margin: 24px 0; }
.page-content figcaption { margin-top: 8px; color: #777; font-size: 13px; }
.page-content blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--blue);
  background: #f7f8f9;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content th, .page-content td { padding: 10px; border: 1px solid #ddd; text-align: left; }
.page-content pre { padding: 16px; background: #f5f5f5; overflow-x: auto; }
.page-content input, .page-content textarea, .page-content select {
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0;
}
.page-content button { padding: 10px 20px; border: 0; background: var(--blue); color: #fff; }

/* Footer */
footer { border-top: 1px solid #d5d5d5; padding-top: 24px; }
.footer-main {
  display: grid;
  grid-template-columns: 142px 2fr repeat(4, 1fr) .7fr;
  gap: 18px;
  margin-bottom: 24px;
}
.footer-logo { width: 142px; object-fit: contain; align-self: start; }
.about { font-size: 12px; line-height: 1.45; letter-spacing: .4px; }
.about p { margin: 0 0 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; color: #666; font-size: 12px; }
.footer-links a:first-child { color: #333; font-weight: 600; text-transform: uppercase; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--blue); }
.social { color: #666; font-size: 11px; }
.social p { margin: 0; }
.social a { display: inline-block; margin: 15px 10px 0 0; font-size: 22px; font-weight: 600; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 22px;
  background: var(--blue);
  color: #fff;
}
.footer-bottom a { font-size: 14px; font-weight: 400; letter-spacing: .8px; }
.footer-bottom a:hover, .footer-bottom a:focus-visible {
  font-weight: 400;
  text-shadow: .3px 0 currentColor, -.3px 0 currentColor;
}

/* Freccia di ritorno all’inizio */
.torna-su {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s, background-color .2s;
}
.torna-su svg { width: 28px; height: 28px; }
.torna-su.visibile { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.torna-su:hover { background: #004e6d; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 200; padding: 10px; background: #fff; }

/* Tablet e menu compatto */
@media (max-width: 900px) {
  .nav-wrap { height: 56px; }
  .logo { width: 102px; top: 7px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    border: 0;
    background: none;
    color: #fff;
    text-transform: uppercase;
  }
  .menu-toggle span { font-size: 22px; }
  .header nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 65px 20px 25px;
    border-bottom: var(--stripe-height) solid var(--blue);
    background: var(--wine);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .header nav.open { display: flex; }
  .header nav a { font-size: 16px; }
  .header nav .contact { margin-left: 0; }
  .header.scrolled nav { padding-top: 25px; }
  .page-content { padding-top: 65px; }
  .footer-main { grid-template-columns: 100px 2fr 1fr 1fr; gap: 24px; }
  .footer-logo { width: 100px; }
  .footer-links:nth-of-type(4) { grid-column: 3; }
  .footer-links:nth-of-type(5) { grid-column: 4; }
  .social { grid-column: 1 / -1; }
}

/* Smartphone */
@media (max-width: 600px) {
  :root { --stripe-height: 8px; }
  html { scroll-padding-top: 85px; }
  .nav-wrap { padding-inline: 16px; }
  .logo, .wordmark { left: 16px; }
  .wordmark { font-size: 17px; }
  .header nav { padding-inline: 16px; }
  .page { padding: 0 16px 24px; }
  .page-content { min-height: 50vh; padding: 65px 0 30px; }
  .page-content h1 { font-size: 28px; }
  .page-content h2 { font-size: 23px; }
  .page-content h3 { font-size: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; justify-self: center; width: 115px; }
  .about { grid-column: 1 / -1; font-size: 13px; }
  .footer-links:nth-of-type(n) { grid-column: auto; }
  .social { grid-column: 1 / -1; }
  .footer-bottom { gap: 18px; padding: 20px 12px; }
  .footer-bottom a { font-size: 12px; }
  .torna-su { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .torna-su { transition: none; }
}

/* Integrazione ResponsiveCE: variabili Pico e componenti del CMS */
:root,
[data-theme="light"] {
  --font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size: 16px;
  --line-height: 1.6;
  --font-weight: 400;
  --border-radius: 0;
  --background-color: #f1ebd2;
  --color: #202124;
  --h1-color: #202124;
  --h2-color: #202124;
  --h3-color: #202124;
  --muted-color: #777;
  --muted-border-color: #d5d5d5;
  --primary: #00638a;
  --primary-hover: #004e6d;
  --primary-focus: rgba(0, 99, 138, .2);
  --primary-inverse: #fff;
  --contrast: #202124;
  --card-background-color: #fff;
  --form-element-background-color: #fff;
  --form-element-border-color: #ccc;
}
body { overflow-x: visible; }
.animated-background { display: none; }
.header { padding: 0; box-shadow: none; }
.header-grid { flex-wrap: nowrap; }
.header-logo { font-size: inherit; font-style: normal; margin: 0; padding: 0; }
.header nav { margin: 0; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.header-nav > li { position: relative; padding: 0; margin: 0; display: block; }
.header-nav > li:last-child { margin-left: auto; }
.header-nav a,
.header-nav .current a,
.header-nav a[role="button"] {
  display: block;
  width: auto;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
}
.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav .current > a { color: #caa366; background: transparent; }
.wordmark.without-logo { opacity: 1; visibility: visible; }
.header-mobile-btn { width: auto; height: auto; margin: 0 0 0 auto; padding: 6px 0; box-shadow: none; }
.header-nav .subMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-width: 300px;
  margin: 0;
  padding: 8px 0 !important;
  border-radius: 0;
  background: var(--wine);
  box-shadow: 0 6px 14px #0002;
  z-index: 70;
  list-style: none;
}
.header-nav .subMenu li { padding: 0; margin: 0; }
.header-nav .subMenu li a { padding: 10px 16px; font-size: 14px; text-transform: none; }
.header-nav .subMenu li a:hover { background: #ffffff0d; color: #caa366; }
.showDropdown { display: none; }
.menu-chevron { font-size: 12px; margin-left: 7px; }

.page { padding-top: 0; }
.page .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.glass-container1,
.glass-container2 {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.breaking-news { padding-top: 95px; }
.breaking-news h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--wine);
  color: var(--wine);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.7px;
}
.breaking-news a { text-decoration: none; }
.content { margin: 0; padding: 95px 0 40px; }
.breaking-news + .content { padding-top: 28px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  gap: 30px;
  margin: 0;
}
.content-grid-left { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.content-grid-left .content-sidebar { order: 1; }
.content-grid-left .content-main { order: 2; }
.content-grid-nosidebar { grid-template-columns: minmax(0, 1fr); }
.content-grid-nosidebar .content-sidebar { display: none; }
.content-main.page-content { min-width: 0; min-height: 440px; padding: 0; }
.content-title { margin: 0 0 25px; padding: 0 0 16px; border-bottom: 1px solid #d5d5d5; }
.content-title h1 { margin: 0 0 12px; font-size: 34px; }
.content-main nav[aria-label="breadcrumb"] { display: block; margin: 0; }
.content-main nav[aria-label="breadcrumb"] ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.content-main nav[aria-label="breadcrumb"] li { padding: 0; margin: 0; font-size: 13px; }
.content-main nav[aria-label="breadcrumb"] li + li::before { content: "/"; margin-right: 6px; color: #999; }
.content-main nav[aria-label="breadcrumb"] a { color: #777; text-decoration: none; }
.content-main img { margin-bottom: 20px; border-radius: 0; }
.content-sidebar { min-width: 0; margin-top: 0; font-size: 14px; overflow-wrap: anywhere; }
.content-sidebar h2 { font-size: 20px; font-weight: 500; letter-spacing: 1.2px; border-bottom: 3px solid var(--blue); padding-bottom: 9px; }
.content-sidebar ul { padding: 18px 18px 18px 34px; background: #f5f6f7; color: var(--ink); line-height: 1.6; border-radius: 0; }
.content-sidebar a { color: var(--blue); }
.content-sidebar ::marker { color: var(--blue); }
footer { margin: 0; padding-bottom: 0; }
.footer-main { margin-top: 0; }
.footer-main > * { min-width: 0; }
.footer-links a { padding: 0; margin: 0; text-decoration: none; }
.footer-brand { font-size: 18px; color: var(--blue); }
.footer-bottom a { text-decoration: none; }
.torna-su { text-decoration: none; }

@media (min-width: 901px) {
  .hide-mobile { display: flex !important; }
  .hide-desktop { display: none !important; }
  .header-nav > li:hover > .subMenu,
  .header-nav > li:focus-within > .subMenu { display: flex; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .header-nav { gap: 15px; }
  .header nav a { font-size: 15px; }
}
@media (max-width: 900px) {
  .header nav { display: block; position: static; padding: 0; border: 0; width: 0; max-height: none; overflow: visible; }
  .header.scrolled nav { padding: 0; }
  .header-nav,
  .header-nav.hide-mobile { display: none !important; }
  .header-nav:not(.hide-mobile) {
    display: flex !important;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 65px 20px 25px;
    margin: 0 !important;
    background: var(--wine);
    border-bottom: var(--stripe-height) solid var(--blue);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .header.scrolled .header-nav:not(.hide-mobile) { padding-top: 25px; }
  .header-nav > li,
  .header-nav > li:last-child { display: block; width: 100%; margin: 0; padding: 0; }
  .header-nav a { padding: 5px 0; width: auto; text-align: left; }
  .header-nav > .wSub { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
  .header-nav > .wSub > a { width: calc(100% - 45px); }
  .header-nav .wSub .showDropdown { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; margin: 0 0 0 5px; padding: 0; border: 1px solid #ffffff40; border-radius: 0; background: transparent; color: #fff; box-shadow: none; }
  .header-nav .subMenu { position: static; top: auto; min-width: 0; max-width: none; width: 100% !important; margin-top: 8px; background: #5d2434; box-shadow: none; }
  .menu-chevron { display: none; }
  .breaking-news { padding-top: 65px; }
  .content { padding-top: 65px; }
  .content-grid, .content-grid-left { grid-template-columns: minmax(0, 1fr); }
  .content-grid-left .content-main { order: 1; }
  .content-grid-left .content-sidebar { order: 2; }
}
@media (max-width: 600px) {
  .header-nav:not(.hide-mobile) { padding-inline: 16px; }
  .content-title h1 { font-size: 28px; }
  .footer-bottom { padding-inline: 12px; }
}

/* La modalità scura rimane disponibile tramite $mode. */
[data-theme="dark"] { --ink: #eee; --background-color: #181c21; --color: #eee; --h1-color: #eee; --h2-color: #eee; --h3-color: #eee; --muted-color: #aaa; --form-element-background-color: #252a30; --form-element-color: #eee; }
[data-theme="dark"] body { background: #181c21; color: #eee; }
[data-theme="dark"] .page,
[data-theme="dark"] .glass-container1,
[data-theme="dark"] .glass-container2 { background: #20252b; }
[data-theme="dark"] .content-sidebar ul,
[data-theme="dark"] .page-content blockquote,
[data-theme="dark"] .page-content pre { background: #2a3038; color: #eee; }
[data-theme="dark"] .footer-links { color: #bbb; }
[data-theme="dark"] .footer-links a:first-child { color: #eee; }

/* Mantiene le dimensioni del footer indipendenti dalle regole Pico. */
.about p, .about strong, .social p { font-size: inherit; }
.header nav .header-nav { margin: 0; padding-left: 0; }
@media (max-width: 900px) {
  .header nav .header-nav:not(.hide-mobile) { padding-left: 20px; }
}
@media (max-width: 600px) {
  .header nav .header-nav:not(.hide-mobile) { padding-left: 16px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { --ink: #eee; --background-color: #181c21; --color: #eee; --h1-color: #eee; --h2-color: #eee; --h3-color: #eee; --muted-color: #aaa; }
  html:not([data-theme]) body { background: #181c21; color: #eee; }
  html:not([data-theme]) .page,
  html:not([data-theme]) .glass-container1,
  html:not([data-theme]) .glass-container2 { background: #20252b; }
  html:not([data-theme]) .content-sidebar ul,
  html:not([data-theme]) .page-content blockquote,
  html:not([data-theme]) .page-content pre { background: #2a3038; color: #eee; }
  html:not([data-theme]) .footer-links { color: #bbb; }
  html:not([data-theme]) .footer-links a:first-child { color: #eee; }
}


/* Cinque voci del menu della homepage */
@media (min-width: 901px) {
  .header-nav > li { width: auto; flex: 0 0 auto; }
  .header-nav { gap: 18px; }
  .header nav a { font-size: 16px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .header-nav { gap: 12px; }
  .header nav a { font-size: 14px; }
}
@media (min-width: 901px) {
  .header-nav { flex-direction: row; flex-wrap: nowrap; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .header nav { padding-left: 160px; }
  .header-nav { gap: 10px; }
  .header nav a { letter-spacing: .3px; }
}

/* Sidebar: pulsanti e rubriche della homepage Onda Metis */
@media (min-width: 901px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .content-grid-left { grid-template-columns: 300px minmax(0, 1fr); }
  .content-grid-nosidebar { grid-template-columns: minmax(0, 1fr); }
}

.content-sidebar .actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}

.content-sidebar .actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 71px;
  margin: 0;
  padding: 18px 10px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(25deg, #51202d 0%, #732c3f 35%, #94465b 50%, #732c3f 65%, #51202d 100%);
  color: #fff;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .5px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.content-sidebar .actions a + a {
  background: linear-gradient(25deg, #00445f 0%, #00638a 35%, #258aaf 50%, #00638a 65%, #00445f 100%);
}

.content-sidebar .actions a:hover,
.content-sidebar .actions a:focus-visible { color: #fff; filter: brightness(1.08); }

.content-sidebar .rubrics { width: 100%; margin: 0; padding: 0; }
.content-sidebar .rubrics h2 {
  display: block;
  margin: 0 0 24px;
  padding: 0 0 8px;
  border-bottom: 4px solid #202124;
  color: #202124;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.content-sidebar .rubric {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202124;
  text-decoration: none;
}
.content-sidebar .rubric:last-child { margin-bottom: 0; }
.content-sidebar .rubric img.rubric-icon {
  display: block;
  flex: 0 0 74px;
  width: 74px;
  max-width: 74px;
  height: 68px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
}
.content-sidebar .rubric > span { display: block; min-width: 0; }
.content-sidebar .rubric strong {
  display: block;
  margin: 0;
  color: inherit;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.content-sidebar .rubric small {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.content-sidebar .rubric:hover strong,
.content-sidebar .rubric:focus-visible strong { color: #00638a; }

@media (max-width: 900px) {
  .content-sidebar .actions,
  .content-sidebar .rubrics { max-width: 360px; margin-inline: auto; }
}

[data-theme="dark"] .content-sidebar .rubrics h2 { color: #eee; border-color: #ddd; }
[data-theme="dark"] .content-sidebar .rubric { color: #eee; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .content-sidebar .rubrics h2 { color: #eee; border-color: #ddd; }
  html:not([data-theme]) .content-sidebar .rubric { color: #eee; }
}

/* Spaziatura per il menu a sei voci */
@media (min-width: 901px) and (max-width: 950px) {
  .header-nav { gap: 8px; }
  .header nav a { font-size: 13px; letter-spacing: .2px; }
}
