@media (min-width: 992px) {
  .site-nav .mobile-nav-scroll > ul > li > ul > li > ul { display: none !important; }
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-600-latin.woff2") format("woff2");
}

:root {
  --infn-navy: #002d4b;
  --infn-blue: #4196b4;
  --infn-cyan: #34a3ce;
  --infn-pale: #f0f8fb;
  --infn-pale-border: #dff6ff;
  --infn-line: #e6e6e6;
  --infn-paper: #fff;
  --infn-text: #333;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--infn-text);
  background: #e7e7e7 url("../images/background.jpg") repeat;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

img { max-width: 100%; height: auto; }
/* Valori tipografici del tema Helix3 storico e del suo stylesheet generato. */
a { color: #4196b4; text-decoration: none; }
a:hover, a:focus { color: #0e9cd1; }
h1 { font: 600 14px/1.1 "Open Sans", Arial, sans-serif; }
h2 { font: 600 16px/1.1 "Open Sans", Arial, sans-serif; }
h3 { font: 300 18px/1.1 "Open Sans", Arial, sans-serif; }
h4 { font: 600 20px/1.1 "Titillium Web", Arial, sans-serif; }
h5 { font: 300 22px/1.1 "Open Sans", Arial, sans-serif; }
h6 { font: 300 24px/1.1 "Open Sans", Arial, sans-serif; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: -5rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--infn-navy);
}
.skip-link:focus { top: 1rem; color: #fff; }
.sr-only, .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;
}

.site-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--infn-paper);
  box-shadow: 0 0 12px 6px rgb(0 0 0 / 20%);
}

/* Testata: stesse proporzioni e stessi asset della versione Helix3. */
.brand-row {
  width: calc(100% - 24px);
  min-height: 118px;
  margin: 0 auto;
  padding: 12px 14px 10px 2px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
  color: #080d3f;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 20px;
  margin-top: 5px;
}
.brand:hover, .brand:focus { color: var(--infn-blue); text-decoration: none; }
.brand img { flex: 0 0 auto; width: 157px; height: 70px; }
.brand span { padding-top: 18px; }
.brand strong { display: block; color: var(--infn-blue); font-size: 18px; font-weight: inherit; }
.header-search { position: relative; width: 230px; height: 30px; margin: 24px 64px 0 auto; }
.header-search form { display: block; position: relative; margin: 0; }
.header-search label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
.header-search input {
  display: block;
  width: 100%;
  height: 25px;
  margin: 0;
  padding: 2px 34px 2px 10px;
  border: 1px solid #ccc;
  border-radius: 15px;
  color: #555;
  background: #fff;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.header-search button[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 32px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 15px 15px 0;
  color: var(--infn-cyan);
  background: transparent;
  cursor: pointer;
}
.header-search button:hover, .header-search button:focus-visible { color: var(--infn-navy); outline: 2px solid var(--infn-cyan); outline-offset: 1px; }
.header-search button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle { display: none; }
.mobile-nav-header,
.mobile-nav-section-title,
.mobile-nav-group,
.mobile-search-slot,
.mobile-quick-icon,
.mobile-events-title,
.mobile-footer-institutional,
.mobile-submenu-toggle:not(.mod-menu__toggle-sub),
.mobile-context-toggle,
.nav-backdrop { display: none; }
.mobile-events-panel,
.mobile-events-list,
.mobile-event-actions { display: contents; }
.mobile-nav-scroll { display: contents; }
/* Gli elementi decorativi vengono inseriti una volta dal JS ma devono restare
 * invisibili quando i moduli tornano nelle posizioni desktop originali. */
.sidebar-left .mobile-quick-icon,
.sidebar-left .mobile-institutional-link > span { display: none; }

/* Slider 1210×250: nessuna libreria o dipendenza legacy. */
.hero {
  position: relative;
  width: calc(100% - 24px);
  height: auto;
  aspect-ratio: 1210 / 250;
  margin: 0 auto;
  overflow: hidden;
  background: #d8e0e4;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero > img.is-active { opacity: 1; }

/* Menu principale: Quicksand 20px e barra #002d4b come il sito live. */
.site-nav { min-height: 50px; background: var(--infn-navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul, .site-nav > ul.mod-menu, .site-nav .mod-menu { display: flex !important; align-items: stretch; padding-left: 62px; }
.site-nav li { position: relative; }
.site-nav .mobile-nav-scroll > .mod-menu > li { display: flex; align-items: center; }
.site-nav a {
  display: block;
  padding: 0 12px;
  color: #fff;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 50px;
}
.site-nav a:hover, .site-nav a:focus, .site-nav .active > a { color: var(--infn-blue); background: transparent; text-decoration: none; }
.site-nav .mod-menu__toggle-sub { margin: 0 5px 0 -9px; padding: 8px 5px; color: #fff; background: transparent; border: 0; }
@media (min-width: 992px) {
  .site-nav .mod-menu__toggle-sub { display: none; }
}
.site-nav li ul {
  display: none;
  position: absolute;
  z-index: 1001;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 20px;
  background: #f9f9f9;
  box-shadow: 0 3px 5px rgb(0 0 0 / 20%);
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav li ul li { display: flex; align-items: center; }
.site-nav li ul a {
  flex: 1 1 auto;
  padding: 10px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
}
.site-nav li ul a:hover, .site-nav li ul a:focus, .site-nav li ul .active > a { color: #fff; background: var(--infn-blue); }

/* Griglia 2/7/3 equivalente alla homepage storica. */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  min-height: 430px;
  padding: 10px 10px 36px;
}
.component-area { grid-column: 1 / 4; min-width: 0; padding: 0 12px; }
.content-grid.has-left .component-area { grid-column: 2 / 4; }
.content-grid.has-right .component-area { grid-column: 1 / 3; }
.content-grid.has-left.has-right .component-area { grid-column: 2 / 3; }
.sidebar-left { grid-column: 1; grid-row: 1; min-width: 0; padding: 0 0 0 5px; }
.sidebar-right { grid-column: 3; grid-row: 1; min-width: 0; padding: 0 5px 0 0; }
.module-card { margin: 0 0 20px; }
.component-bottom { margin-top: 22px; }
.component-bottom #flatcal_minical { width: 100% !important; }
.component-bottom #flatcal_minical .flatcal_main_t,
.component-bottom #flatcal_minical .flatcal_navbar,
.component-bottom #flatcal_minical .flatcal_weekdays { width: 100% !important; }
.component-bottom #flatcal_minical .flatcal_main_t { table-layout: fixed; }
.component-bottom #flatcal_minical .flatcal_weekdays { table-layout: fixed; }
.component-bottom #flatcal_minical .flatcal_weekdays td { width: 14.285% !important; text-align: center !important; }
.component-bottom #flatcal_minical .flatcal_main_t > tbody > tr > td { width: 100%; padding: 0; }
.component-bottom #flatcal_minical .flatcal_daycell,
.component-bottom #flatcal_minical .flatcal_othermonth,
.component-bottom #flatcal_minical .flatcal_sundaycell,
.component-bottom #flatcal_minical .flatcal_todaycell { width: 14.285% !important; height: 56px; padding: 4px; text-align: center; vertical-align: middle; }
.events-calendar-full { margin-top: 24px; }
.events-calendar-full iframe { display: block; width: 100%; height: 920px; border: 0; }
.module-title { margin: 0 0 12px; color: var(--infn-blue); font-size: 20px; font-weight: 700; line-height: 26px; }
.component-area article, .component-area .com-content-article.item-page, .legacy-article { text-align: justify; text-justify: inter-word; font-size: 16px; }
.component-area article p, .component-area .com-content-article__body p, .legacy-article p { margin: 0 0 10px; }
.component-area article details { cursor: pointer; }
.component-area article summary,
.component-area .com-content-article summary {
  margin-bottom: 5px;
  outline: none;
  color: #4196b4 !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
}
.component-area article summary strong,
.component-area .com-content-article summary strong { font-weight: 400 !important; }
.component-area article summary::marker,
.component-area .com-content-article summary::marker { color: #34a3ce; }
.component-area article h1, .component-area article h2, .component-area article h3,
.component-area article h4, .component-area article h5, .component-area article h6,
.component-area .com-content-article__body h1, .component-area .com-content-article__body h2,
.component-area .com-content-article__body h3, .component-area .com-content-article__body h4,
.component-area .com-content-article__body h5, .component-area .com-content-article__body h6 {
  margin-top: 20px;
  margin-bottom: 10px;
}
.component-area .com-content-article__body h3 { line-height: 1.2; }
.component-area article ul, .component-area article ol {
  margin-top: 0;
  margin-bottom: 10px;
}
.component-area article hr {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #eee;
}
.component-area .page-header, .component-area .entry-header { margin: 10px 0 18px; color: var(--infn-navy); font-family: "Quicksand", Arial, sans-serif; }
.component-area .page-header h1, .component-area .page-header h2, .component-area .entry-header h2 {
  margin: 0;
  color: var(--infn-navy);
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.component-area .page-header h1 a, .component-area .page-header h2 a,
.component-area .entry-header h2 a { color: var(--infn-navy); }
.component-area .page-header h1 a:hover, .component-area .page-header h2 a:hover,
.component-area .entry-header h2 a:hover { color: var(--infn-blue); }
.component-area .article-info, .legacy-date { margin: 18px 0 5px; color: #777; font-size: 14px; text-transform: uppercase; }
.legacy-date::before { content: "◷"; margin-right: 7px; font-size: 19px; }
.com-content-category-blog .item-content { display: flex; flex-direction: column; }
.com-content-category-blog .item-content > .article-info { order: -1; margin: 3px 0 7px; }
.com-content-category-blog .blog-item .item-content > p { margin: 0 0 10px; }
.com-content-category-blog .article-info dd { margin: 0; }
.com-content-category-blog .article-info .published,
.com-content-category-blog .article-info .modified,
.com-content-category-blog .article-info .hits { display: none; }
.com-content-category-blog .article-info .create { display: block; }
.com-content-category-blog .legacy-blog-date { display: block; }
.com-content-category-blog .legacy-blog-date::before {
  content: "◷";
  margin-right: 7px;
  font-size: 19px;
}
.com-content-category-blog .page-header { margin: 0 0 15px; }
.com-content-category-blog .page-header h2 { position: relative; padding-left: 23px; }
.com-content-category-blog .page-header h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 11px;
  background: var(--infn-cyan);
}
.com-content-category-blog .blog-items:not(.items-leading) .page-header h2 {
  padding-left: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.com-content-category-blog .blog-items:not(.items-leading) .page-header h2::before { width: 8px; }
.com-content-category-blog .readmore { width: 100%; margin: 8px 0 20px; }
.com-content-category-blog .readmore .btn {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 5px 0;
  border: 0;
  border-bottom: 2px solid var(--infn-line);
  border-radius: 0;
  color: var(--infn-navy);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.com-content-category-blog .blog-items {
  display: block;
}
.com-content-category-blog .blog-items.items-leading .blog-item {
  width: 100%;
}
.com-content-category-blog .blog-items.masonry-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
}
.com-content-category-blog .blog-items.masonry-2 .blog-item {
  min-width: 0;
}
.com-content-category-blog .blog-item {
  min-width: 0;
  text-align: justify;
  text-justify: inter-word;
  font-size: 16px;
}
.com-content-category-blog .blog-item .page-header h2 {
  font-size: 24px;
  line-height: 1;
}
.com-content-category-blog .readmore .btn {
  font-size: 0;
}
.com-content-category-blog .readmore .btn .icon-chevron-right {
  margin-right: 6px;
  font-size: 13px;
}
.com-content-category-blog .readmore .btn::after {
  content: "Leggi tutto...";
  font-size: 13px;
}
.com-content-category-blog__navigation {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.com-content-category-blog__counter {
  order: 2;
  margin: 8px 0 0 !important;
  color: #777;
  font-size: 13px;
  text-align: right;
}
.com-content-category-blog__pagination {
  order: 1;
}
.com-content-category-blog__pagination .pagination__wrapper {
  display: block;
}
.com-content-category-blog__pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.com-content-category-blog__pagination .page-item {
  margin: 0;
}
.com-content-category-blog__pagination .page-link {
  display: block;
  min-width: 39px;
  padding: 7px 12px;
  border: 1px solid #d6dfe5;
  margin-left: -1px;
  color: var(--infn-navy);
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.com-content-category-blog__pagination .page-item.active .page-link {
  position: relative;
  z-index: 1;
  color: #fff;
  background: #1677f2;
  border-color: #1677f2;
}
.com-content-category-blog__pagination .page-item.disabled .page-link {
  color: #777;
  background: #f6f6f6;
}
.com-content-category-blog__pagination .page-link:hover,
.com-content-category-blog__pagination .page-link:focus {
  color: #fff;
  background: var(--infn-blue);
}
.legacy-title {
  margin: 0 0 14px;
  padding-left: 23px;
  position: relative;
  color: var(--infn-navy);
  font: 600 24px/1 "Quicksand", Arial, sans-serif;
}
.legacy-title::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; width: 11px; background: var(--infn-cyan); }
.legacy-article-image { display: block; width: 300px; margin: 8px 0 2px; }
.legacy-readmore { display: block; padding: 5px 0; border-bottom: 2px solid var(--infn-line); color: var(--infn-navy); font-size: 13px; font-weight: 600; }

.intro-home {
  box-sizing: border-box;
  margin-top: 0;
  padding: 10px;
  color: var(--infn-navy);
  background: var(--infn-pale);
  border: 3px solid var(--infn-pale-border);
  font: 400 14px/20px "Quicksand", Arial, sans-serif;
  text-align: justify;
  text-justify: inter-word;
}

/* Pulsanti e colonne laterali con gli asset originali, ma markup semplice. */
.legacy-left-buttons { display: grid; gap: 5px; }
.legacy-image-button { display: block; position: relative; overflow: hidden; }
.legacy-image-button img { display: block; width: 100%; transition: filter .25s ease; }
.legacy-image-button:hover img, .legacy-image-button:focus img { filter: brightness(75%); }
.legacy-button-label { position: absolute; color: #fff; font-weight: 700; pointer-events: none; text-shadow: 0 1px 1px #00314e; }
.legacy-button-label.work { top: 0; left: 0; width: 100%; text-align: center; font-size: 15px; }
.legacy-button-label.emergency { top: 31%; right: 10%; font-size: 18px; }
.legacy-social { padding: 15px 0 17px; text-align: center; font-size: 22px; }
.legacy-social a { margin: 0 3px; color: #008ed3; }
.sidebar-left .button-hover { position: relative; overflow: hidden; }
.sidebar-left .button-hover img { display: block; width: 100%; transition: filter .25s ease; }
.sidebar-left .button-hover:hover img,
.sidebar-left .button-hover:focus-within img { filter: brightness(75%); }
.testo-pulsante {
  position: absolute;
  color: #fff;
  font-weight: 700;
  line-height: 20px;
  pointer-events: none;
  text-shadow: 0 1px 2px #002d4b;
}
.testo-pulsante-a { top: 0; left: 0; width: 100%; font-size: 15px; text-align: center; }
.testo-pulsante-b { top: 31%; right: 10%; font-size: 18px; }
.sidebar-left .fa { display: inline-grid; place-items: center; width: 26px; height: 26px; color: #008ed3; font-style: normal; }
/* Le icone aggiunte dal JS appartengono alle card mobili. Questa regola deve
 * seguire quella generica `.sidebar-left .fa`, altrimenti sul desktop l'icona
 * riappare e sposta immagine e testo del pulsante su una riga successiva. */
.sidebar-left .mobile-action-link > .mobile-quick-icon { display: none; }
.reserved-panel { padding: 12px 10px 0; border: 3px solid var(--infn-pale-border); background: var(--infn-pale); text-align: center; font-size: 13px; }
.reserved-panel strong { display: block; margin-bottom: 10px; color: var(--infn-navy); }
.reserved-panel span { display: block; }
.reserved-panel .reserved-button { display: inline-block; margin: 13px 0; padding: 6px 14px; border-radius: 3px; color: #fff; background: linear-gradient(#1695d0, #0060bd); box-shadow: 0 1px 2px rgb(0 0 0 / 25%); }

.right-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 5px; }
.right-buttons a { display: block; position: relative; overflow: hidden; }
.right-buttons img { display: block; width: 100%; }
.right-buttons .button-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-shadow: 0 1px 2px #002d4b;
  pointer-events: none;
}
.right-buttons .button-text.align-right { justify-content: flex-end; padding-right: 9px; text-align: left; }
.sidebar-right .mod-custom > div:has(> .button-link) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.sidebar-right .button-link { display: block; position: relative !important; left: auto !important; max-width: none; padding: 0 !important; overflow: hidden; }
.sidebar-right .button-link a { display: block; }
.sidebar-right .button-link img { display: block; width: calc(100% - 4px); margin: 2px !important; transition: filter .25s ease; }
.sidebar-right .button-link:hover img,
.sidebar-right .button-link:focus-within img { filter: brightness(75%); }
.legacy-slider { width: 100%; overflow: hidden; }
.legacy-slider-image { display: none; width: 100%; height: auto; }
.legacy-slider-image:first-child { display: block; }
.testo-pulsante-1 { top: 50%; right: 9%; transform: translateY(-50%); font-size: 18px; }
.testo-pulsante-2 { top: 50%; right: 4%; transform: translateY(-50%); font-size: 16px; }
.testo-pulsante-3,
.testo-pulsante-4,
.testo-pulsante-5,
.testo-pulsante-6 { top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); text-align: center; }
.testo-pulsante-3, .testo-pulsante-5, .testo-pulsante-6 { font-size: 20px; }
.testo-pulsante-4 { font-size: 18px; }
.legacy-accordion { margin: 0 0 17px; }
.legacy-accordion a { display: flex; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid #1685ae; color: #fff; background: var(--infn-cyan); font-size: 14px; }
.legacy-accordion a:hover, .legacy-accordion a:focus { color: #fff; background: #208fba; }
.events-title { margin: 0 0 10px; color: var(--infn-blue); font-size: 20px; font-weight: 700; }
.events { margin: 0; padding: 0; list-style: none; }
.events li { padding: 3px 0; border-bottom: 1px solid var(--infn-cyan); line-height: 18px; }
.events time { display: block; color: #333; font-size: 12px; }
.events time::before { content: "▦"; margin-right: 6px; }
.events a { display: block; overflow: hidden; color: #008ed3; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }

/* JEvents latest module: match the legacy right-column event list. */
.sidebar-right .mod_events_latest_table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, Helvetica, sans-serif;
}
.sidebar-right .mod_events_latest_table td {
  padding: 0;
  vertical-align: top;
}
.sidebar-right .mod_events_latest_date {
  color: #333;
  font-size: 12px;
}
.sidebar-right .mod_events_latest_table .event-summary {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #34a3ce;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar-right .mod_events_latest_table .event-summary a {
  color: #008ed3;
}
.sidebar-right .mod_events_latest_callink {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}
.sidebar-right .mod_events_latest_callink a,
.sidebar-right .mod-custom a[href*="agenda.infn.it"],
.sidebar-right .mod-syndicate.syndicate-module {
  color: #0088cc;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}
.sidebar-right .mod_events_latest_callink a {
  display: flex;
  align-items: center;
  min-height: 28px;
  font-size: 0;
  line-height: 28px;
}
.sidebar-right .mod_events_latest_callink a::before {
  content: "\f073";
  display: inline-block;
  flex: 0 0 32px;
  width: 32px;
  margin-right: 0;
  font-family: "Font Awesome 6 Free";
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}
.sidebar-right .mod_events_latest_callink a::after {
  content: "Calendario";
  font-size: 20px;
}
.sidebar-right .mod_events_latest_callink { margin-bottom: 4px; }
.sidebar-right .mod-custom:has(a[href*="agenda.infn.it"]) { margin-bottom: 4px; }
.sidebar-right .mod-custom > div:has(> a[href*="agenda.infn.it"]) {
  margin-bottom: 0 !important;
  line-height: 28px;
}
.sidebar-right .mod-custom a[href*="agenda.infn.it"] {
  display: flex;
  align-items: center;
  min-height: 28px;
  line-height: 28px;
}
.sidebar-right .mod-custom a[href*="agenda.infn.it"] i {
  flex: 0 0 32px;
  width: 32px;
  margin-right: 0 !important;
  text-align: center;
}
.sidebar-right .mod-custom a[href*="agenda.infn.it"] img {
  vertical-align: middle;
  margin-top: 0 !important;
}
.sidebar-right .mod-syndicate.syndicate-module .icon-feed {
  display: inline-block;
  width: 32px;
  margin-right: 0 !important;
  text-align: center;
}
.sidebar-right .mod-syndicate.syndicate-module {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0;
  line-height: 28px;
}
.sidebar-right .mod-syndicate.syndicate-module .icon-feed {
  flex: 0 0 32px;
  width: 32px;
  margin: 0 !important;
}
@media screen and (min-width: 1240px) {
  .sidebar-right .mod_events_latest_table .event-summary { max-width: 300px; }
}
@media screen and (max-width: 767px) {
  .sidebar-right .mod_events_latest_table .event-summary {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
  }
}

/* Sostituto nativo Joomla del vecchio JE Accordion Menu. */
.sidebar .legacy-accordion.mod-menu {
  margin: 5px 0 17px;
  padding: 0;
  list-style: none;
  font-family: "Open Sans", Arial, sans-serif;
}
.sidebar .legacy-accordion.mod-menu li { position: relative; list-style: none; }
.sidebar .legacy-accordion.mod-menu > li > a,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__heading,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading) {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 40px;
  border: 0;
  border-bottom: 1px solid #1685ae;
  border-radius: 0;
  color: #fff;
  background: var(--infn-cyan);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
}
.sidebar .legacy-accordion.mod-menu > li > a::before,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__heading::before,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading)::before {
  content: "›";
  position: absolute;
  left: 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 18px;
}
.sidebar .legacy-accordion.mod-menu > li > a:hover,
.sidebar .legacy-accordion.mod-menu > li > a:focus,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__heading:hover,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__heading:focus,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading):hover,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading):focus,
.sidebar .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub[aria-expanded="true"] {
  color: #fff;
  background: #208fba;
}
.sidebar .legacy-accordion.mod-menu .mod-menu__toggle-sub:not(:has(.mod-menu__heading)) {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 5px;
  padding: 6px 8px;
  color: #fff;
  background: transparent;
}
.sidebar .legacy-accordion.mod-menu .mod-menu__heading {
  flex: 1;
  color: inherit;
  font: inherit;
  text-align: left;
}
.sidebar .legacy-accordion.mod-menu ul { margin: 0; padding: 0; list-style: none; }
.sidebar .legacy-accordion.mod-menu ul > li > a,
.sidebar .legacy-accordion.mod-menu ul > li > .legacy-deferred-link {
  position: relative;
  display: flex;
  min-height: 41px;
  align-items: center;
  padding: 8px 12px 8px 34px;
  border: 1px solid #d2d2d2;
  border-top: 0;
  color: #001d33;
  background: #fafafa;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.sidebar .legacy-accordion.mod-menu ul > li > a::before,
.sidebar .legacy-accordion.mod-menu ul > li > .legacy-deferred-link::before {
  content: "›";
  position: absolute;
  left: 16px;
  color: #000;
  font-size: 23px;
  line-height: 18px;
}
.sidebar .legacy-accordion.mod-menu ul > li > a:hover,
.sidebar .legacy-accordion.mod-menu ul > li > a:focus { color: #111; background: #e9e9e9; }
.sidebar .legacy-accordion.mod-menu ul > li.divider > .mod-menu__separator:not(.legacy-deferred-link) {
  display: block;
  padding: 9px 18px 10px;
  color: var(--infn-blue);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

/* Accordion della colonna destra: misure del modulo JE Accordion storico.
 * Le voci principali erano 15px con 15px di padding; le figlie 12px/10px. */
.sidebar-right .legacy-accordion.mod-menu > li > a,
.sidebar-right .legacy-accordion.mod-menu > li > .mod-menu__heading,
.sidebar-right .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading) {
  min-height: 45px;
  padding: 15px 15px 15px 35px;
  font-size: 15px;
  line-height: 15px;
}
.sidebar-right .legacy-accordion.mod-menu > li > a::before,
.sidebar-right .legacy-accordion.mod-menu > li > .mod-menu__heading::before,
.sidebar-right .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading)::before {
  left: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 15px;
}
.sidebar-right .legacy-accordion.mod-menu ul > li > a,
.sidebar-right .legacy-accordion.mod-menu ul > li > .legacy-deferred-link {
  min-height: 32px;
  padding: 10px 12px 10px 32px;
  font-size: 12px;
  line-height: 12px;
}
.sidebar-right .legacy-accordion.mod-menu ul > li > a::before,
.sidebar-right .legacy-accordion.mod-menu ul > li > .legacy-deferred-link::before {
  left: 15px;
  font-size: 17px;
  line-height: 12px;
}

/* Menu contestuali nella colonna sinistra: titolo e righe chiare del sito storico.
 * Sono volutamente distinti dall'accordion azzurro presente nella colonna destra. */
.sidebar-left .module-title {
  margin: 20px 0;
  color: var(--infn-blue);
  font: 700 20px/26px "Open Sans", Arial, sans-serif;
}
.sidebar-left .legacy-accordion.mod-menu {
  margin: 0 0 17px;
  border: 0;
  background: #fff;
}
.sidebar-left .legacy-accordion.mod-menu > li:not(.divider) {
  border-right: 1px solid #d1d1d1;
  border-left: 1px solid #d1d1d1;
}
.sidebar-left .legacy-accordion.mod-menu > li:not(.divider):first-child,
.sidebar-left .legacy-accordion.mod-menu > li.divider + li:not(.divider),
.sidebar-left .legacy-accordion.mod-menu > li:not(.divider) + li:not(.divider) {
  border-top: 1px solid #d1d1d1;
}
.sidebar-left .legacy-accordion.mod-menu > li:not(.divider):last-child,
.sidebar-left .legacy-accordion.mod-menu > li:not(.divider):has(+ li.divider) {
  border-bottom: 1px solid #d1d1d1;
}
.sidebar-left .legacy-accordion.mod-menu > li.divider {
  margin: 0;
  padding: 0;
  border: 0;
}
.sidebar-left .legacy-accordion.mod-menu > li.divider > .mod-menu__separator {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 0 7px 18px;
  color: #4196b4;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
}
.sidebar-left .legacy-accordion.mod-menu > li > a,
.sidebar-left .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading) {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 15px 15px 35px;
  border: 0;
  color: #111;
  background: #fff;
  font: 400 15px/15px "Open Sans", Arial, sans-serif;
}
.sidebar-left .legacy-accordion.mod-menu > li > a::before,
.sidebar-left .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading)::before {
  left: 16px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 15px;
}
.sidebar-left .legacy-accordion.mod-menu > li.current > a,
.sidebar-left .legacy-accordion.mod-menu > li.active > a,
.sidebar-left .legacy-accordion.mod-menu > li > a:hover,
.sidebar-left .legacy-accordion.mod-menu > li > a:focus,
.sidebar-left .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading):hover,
.sidebar-left .legacy-accordion.mod-menu > li > .mod-menu__toggle-sub:has(.mod-menu__heading):focus {
  color: #111;
  background: #e9e9e9;
}

/* Login storico, mantenendo il modulo e l'autenticazione nativi di Joomla. */
.sidebar-left .mod-login {
  margin-top: 18px;
  padding: 12px 10px 0;
  border: 3px solid var(--infn-pale-border);
  color: var(--infn-navy);
  background: var(--infn-pale);
  font-size: 13px;
}
.sidebar-left .mod-login::before {
  content: "Area riservata";
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}
.sidebar-left .mod-login p { margin: 0 0 10px; }
.sidebar-left .mod-login .form-group { margin-bottom: 8px; }
.sidebar-left .mod-login label { display: block; margin-bottom: 3px; }
.sidebar-left .mod-login .input-group { display: flex; }
.sidebar-left .mod-login .form-control { width: 100%; min-width: 0; height: 27px; padding: 3px 6px; background: #fff; }
.sidebar-left .mod-login .input-password-toggle { flex: 0 0 30px; padding: 2px; border: 1px solid #ccc; border-left: 0; color: var(--infn-navy); background: #fff; }
.sidebar-left .mod-login .form-check { display: flex; align-items: center; gap: 7px; }
.sidebar-left .mod-login .form-check-input { width: 14px; height: 14px; margin: 0; }
.sidebar-left .mod-login .plg_system_webauthn_login_button,
.sidebar-left .mod-login .mod-login__options { display: none; }
.sidebar-left .mod-login button[name="Submit"] { display: block; margin: 12px auto 0; padding: 6px 14px; background: linear-gradient(#1695d0, #0060bd); }
.sidebar-left .mod-login .posttext { margin: 0 -10px; text-align: center; }
.sidebar-left .mod-login .posttext p { margin: 0; padding: 10px 0 0 !important; }
.sidebar-left .mod-login-logout {
  margin-top: 18px;
  padding: 12px 10px 12px;
  border: 3px solid var(--infn-pale-border);
  color: var(--infn-navy);
  background: var(--infn-pale);
  font-size: 13px;
  text-align: center;
}
.sidebar-left .mod-login-logout::before {
  content: "Area riservata";
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}
.sidebar-left .mod-login-logout button[name="Submit"] {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(#1695d0, #0060bd);
}

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-card { border: 1px solid #d5dfe4; background: #fff; }
.news-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card div { padding: 12px; }
.news-card h3 { margin: 0 0 6px; color: var(--infn-navy); font-size: 17px; font-weight: 700; }
.news-card p { margin: 0; color: #66737d; }

/* Compatibilità mirata con le classi editoriali presenti negli articoli J3. */
.component-area .img-responsive { display: block; max-width: 100%; height: auto; }
.component-area .pull-right { float: right !important; margin: 0 0 15px 15px; }
.component-area .pull-left { float: left !important; margin: 0 15px 15px 0; }
.component-area .rteleft { text-align: left; }
.component-area iframe,
.component-area video { max-width: 100%; }
.component-area pre { max-width: 100%; overflow: auto; }
.component-area table { max-width: 100%; }

.infnjson { margin: 12px 0 20px; overflow-x: auto; }
.infnjson-table { width: 100%; border-collapse: collapse; color: #333; font-size: 14px; }
.infnjson-table th,
.infnjson-table td { padding: 7px 9px; border: 1px solid #c8dce5; text-align: left; vertical-align: top; }
.infnjson-table th { color: #fff; background: #0088cc; font-weight: 700; }
.infnjson-table tr:nth-child(even) { background: #f3f8fa; }
.infnjson-table a { color: #0088cc; }
.infnjson-error { padding: 10px; border: 1px solid #d9a1a1; color: #8a2020; background: #fff4f4; }

/* Rubrica: replica il markup Bootstrap 3 della pagina Joomla 3, mantenendo
 * l'HTML remoto fuori dal processo di rendering. */
.infn-phonebook > p { margin: 0 0 10px; }
.infn-phonebook details { margin: 0 0 10px; }
.infn-phonebook summary { display: list-item; cursor: pointer; }
.infn-phonebook .table-responsive { width: 100%; min-height: .01%; overflow-x: auto; }
.infn-phonebook .table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-spacing: 0;
  border-collapse: collapse;
  background-color: transparent;
}
.infn-phonebook .table > tbody > tr > td {
  padding: 8px;
  border-top: 1px solid #ddd;
  line-height: 1.42857143;
  vertical-align: top;
}
.infn-phonebook .table-hover > tbody > tr:hover { background-color: #f5f5f5; }
.infn-phonebook-error { padding: 10px; border: 1px solid #d9a1a1; color: #8a2020; background: #fff4f4; }
.component-area .btn-group { position: relative; display: inline-flex; vertical-align: middle; }
.component-area .label { display: inline-block; padding: 2px 5px; border-radius: 3px; color: #fff; font-size: 12px; line-height: 1; }
.component-area .label-info { background: var(--infn-blue); }
.legacy-attachments { clear: both; margin: 18px 0; padding: 12px 15px; border-left: 4px solid var(--infn-cyan); background: var(--infn-pale); }
.legacy-attachments h3 { margin: 0 0 8px; color: var(--infn-navy); font-size: 17px; font-weight: 600; }
.legacy-attachments ul { margin: 0; padding-left: 20px; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: 0;
  min-height: 180px;
  padding: 20px 7.5%;
  color: #fff;
  background: var(--infn-navy);
  font-size: 13px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.footer-identity { position: relative; padding-right: 20px; }
.footer-logo { float: left; margin: 0 20px 10px 0; }
.footer-logo img { display: block; width: 90px; height: auto; }
.footer-identity-name { padding-top: 11px; font-size: 16px; line-height: 20px; }
.footer-identity-name a { display: inline-block; }
.footer-address { clear: both; padding-top: 2px; font-size: 12px; line-height: 24px; }
.footer-social { align-self: start; padding-top: 17px; text-align: center; }
.footer-social > a { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 3px; border-radius: 3px; color: #fff; background: #888; font-size: 20px; line-height: 30px; }
.footer-legal { align-self: start; padding-top: 10px; text-align: right; font-size: 16px; line-height: 26px; }
.footer-accessibility { margin-top: 57px; }

input, button, select, textarea { font: inherit; }
.btn, button[type="submit"] { border: 0; border-radius: 3px; padding: .55rem .85rem; color: #fff; background: var(--infn-blue); cursor: pointer; }
.form-control { max-width: 100%; padding: .55rem; border: 1px solid #ccc; }

@media (max-width: 991px) {
  body { background: #fff; }
  body.mobile-nav-open { overflow: hidden; }
  .site-shell { width: 100%; box-shadow: none; }
  .brand-row {
    width: 100%;
    min-height: 80px;
    padding: 6px 15px;
    align-items: center;
    color: #fff;
    background: var(--infn-navy);
  }
  .brand { align-items: center; gap: 12px; margin: 0; color: #fff; font-size: 16px; line-height: 20px; }
  .brand:hover, .brand:focus { color: #fff; }
  .brand img { content: url("../images/logo-infn-icona-bianca.png"); width: 90px; height: auto; }
  .brand span { padding: 0; }
  .brand strong { color: #fff; font-size: 16px; }
  .header-search { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 3px;
    color: #fff;
    background: transparent;
    font-size: 22px;
  }
  .mobile-nav-toggle-label { font-size: 15px; font-weight: 700; }
  .hero { width: 100%; margin: 0; }

  .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 5000;
    inset: 0 auto 0 0;
    width: min(94vw, 410px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    color: var(--infn-text);
    background: #f7fafc;
    box-shadow: 8px 0 24px rgb(0 0 0 / 28%);
    transform: translateX(-105%);
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .site-nav.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .mobile-nav-scroll {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 28px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 18px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    color: #fff;
    background: var(--infn-navy);
    font-size: 20px;
  }
  .mobile-nav-close {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    color: #fff;
    background: transparent;
    font-size: 30px;
    line-height: 1;
  }
  .mobile-nav-close:hover,
  .mobile-nav-close:focus { border-color: #fff; background: rgb(255 255 255 / 12%); }
  .mobile-search-slot { display: block; padding: 14px 18px 5px; }
  .mobile-search-slot .header-search {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .mobile-search-slot .header-search input {
    width: 100%;
    height: 44px;
    padding-left: 14px;
    padding-right: 48px;
    border: 1px solid #bfd6e0;
    border-radius: 6px;
    color: var(--infn-navy);
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 45 75 / 8%);
    font-size: 16px;
  }
  .mobile-search-slot .header-search button { width: 44px; height: 44px; border-radius: 0 6px 6px 0; }
  .mobile-nav-section-title {
    display: block;
    margin: 15px 18px 7px;
    color: #397f9b;
    font: 700 13px/18px "Open Sans", Arial, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .site-nav > ul,
  .site-nav > ul.mod-menu,
  .site-nav .mod-menu { display: block !important; padding: 0; }
  .site-nav li { display: flex !important; flex-wrap: wrap; width: 100%; }
  .site-nav .mobile-nav-scroll > .mod-menu > li { border-bottom: 1px solid #dce8ed; }
  .site-nav li > a {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 11px 18px;
    color: var(--infn-navy);
    font-size: 16px;
    line-height: 24px;
  }
  .site-nav .mobile-nav-scroll > .mod-menu > li > a { font-size: 17px; }
  .site-nav li > a:hover,
  .site-nav li > a:focus { color: var(--infn-navy); background: var(--infn-pale); }
  .site-nav li.active > a,
  .site-nav li.current > a {
    color: #075f83;
    background: #e8f5fa;
    box-shadow: inset 4px 0 0 var(--infn-cyan);
    font-weight: 700;
  }
  .site-nav li > ul,
  .site-nav li:not(.mobile-submenu-open):hover > ul,
  .site-nav li:not(.mobile-submenu-open):focus-within > ul {
    display: none !important;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin: 0 0 7px 20px;
    padding: 2px 0 2px 12px;
    border-left: 2px solid #86c9df;
    background: #f1f7f9;
    box-shadow: none;
  }
  .site-nav li.mobile-submenu-open > ul { display: block !important; }
  .site-nav li ul ul { margin-left: 12px; background: #eaf3f6; }
  .site-nav li ul a { min-height: 42px; padding: 9px 12px; color: #17465b; font-size: 15px; line-height: 22px; }
  .site-nav li ul a:hover, .site-nav li ul a:focus { color: var(--infn-navy); background: #deeff5; }
  .site-nav li ul .active > a,
  .site-nav li ul .current > a { color: #075f83; background: #dff1f7; }
  .site-nav .mobile-placeholder-link { display: none; }
  .site-nav .mobile-submenu-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #dce8ed;
    border-radius: 0;
    color: #397f9b;
    background: transparent;
    font-size: 19px;
  }
  .site-nav .mobile-submenu-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
  .site-nav .mobile-submenu-toggle > span:last-child,
  .mobile-group-toggle > span:last-child,
  .mobile-context-toggle > span:last-child { transition: transform .18s ease; }
  .site-nav li.active > .mobile-submenu-toggle,
  .site-nav li.current > .mobile-submenu-toggle { color: #075f83; background: #e8f5fa; }
  .site-nav .mobile-parent-heading,
  .mobile-services-slot .mod-menu__toggle-sub {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
    padding: 11px 18px;
    border-left: 0;
    text-align: left;
  }

  .mobile-nav-group { display: none; }
  .mobile-nav-group:has(> div:not(:empty)) { display: block; }
  .mobile-quick-slot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
  .mobile-quick-slot .mod-custom { display: contents; }
  .mobile-quick-slot .mod-custom > div { display: contents !important; }
  .mobile-quick-slot :is(.button-link, .mobile-action-link) {
    display: flex !important;
    position: relative !important;
    left: auto !important;
    width: 100%;
    height: 64px;
    min-width: 0;
    max-width: none !important;
    align-items: center;
    margin: 0 !important;
    padding: 9px 30px 9px 12px !important;
    overflow: hidden;
    border: 1px solid #cbdde5;
    border-radius: 6px;
    color: var(--infn-navy);
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 45 75 / 6%);
  }
  .mobile-quick-slot :is(.button-link, .mobile-action-link)::after {
    content: "›";
    position: absolute;
    right: 11px;
    color: var(--infn-cyan);
    font-size: 24px;
    line-height: 1;
  }
  .mobile-quick-slot :is(.button-link, .mobile-action-link):focus-within,
  .mobile-quick-slot :is(.button-link, .mobile-action-link):hover { border-color: var(--infn-blue); background: var(--infn-pale); }
  .mobile-quick-slot :is(.button-link, .mobile-action-link) a { position: absolute; z-index: 1; inset: 0; display: block; min-height: 58px; }
  .mobile-quick-slot :is(.button-link, .mobile-action-link) img { display: none; }
  .mobile-quick-slot .mobile-quick-icon {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-right: 9px;
    border-radius: 50%;
    color: #167fa7;
    background: #e7f4f8;
    font-size: 14px;
  }
  .mobile-quick-slot .testo-pulsante {
    position: static;
    width: auto;
    color: var(--infn-navy);
    transform: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-align: left;
    text-shadow: none;
    pointer-events: none;
  }
  .mobile-relocated-links,
  .mobile-duplicate-social { display: none !important; }

  .mobile-collapsible { margin-top: 4px; border-top: 1px solid #dce8ed; }
  .mobile-group-toggle {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border: 0;
    border-radius: 0;
    color: var(--infn-navy);
    background: #eef6f9;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }
  .mobile-group-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
  .mobile-collapsible > div { display: none; }
  .mobile-collapsible.is-mobile-open > div { display: block; }
  .mobile-services-slot { padding-bottom: 8px; }
  .mobile-services-slot .legacy-accordion { margin: 0; }
  .mobile-services-slot .legacy-accordion > li { border-top: 1px solid #dce8ed; }
  .mobile-services-slot .legacy-accordion li.divider {
    display: block !important;
    margin: 18px 0 6px;
    padding: 0;
    border-top: 0;
  }
  .mobile-services-slot .legacy-accordion li.divider > .mod-menu__separator {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 12px;
    border: 0;
    border-radius: 0;
    color: #397f9b;
    background: #e9eef1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 16px;
    text-align: left;
    text-transform: uppercase;
  }
  .mobile-services-slot .legacy-accordion a {
    border-bottom: 0;
    color: var(--infn-navy);
    background: transparent;
  }
  .mobile-services-slot .legacy-accordion a:hover,
  .mobile-services-slot .legacy-accordion a:focus { color: var(--infn-navy); background: #deeff5; }
  .mobile-services-slot .legacy-accordion > li > a,
  .mobile-services-slot .legacy-accordion > li > button { padding-left: 24px; font-size: 15px; }

  .mobile-account-slot { padding: 0 18px 18px; }
  .mobile-account-slot .module-card { margin: 0; }
  .mobile-account-slot .mod-login,
  .mobile-account-slot .mod-login-logout {
    margin: 0;
    padding: 12px;
    border: 1px solid #cbdde5;
    border-radius: 5px;
    color: var(--infn-text);
    background: #fff;
  }
  .mobile-account-slot .mod-login::before,
  .mobile-account-slot .mod-login-logout::before { display: none; }
  .mobile-account-slot .mod-login label { display: block; margin: 5px 0 3px; }
  .mobile-account-slot .mod-login .input-group { display: flex; }
  .mobile-account-slot .mod-login .form-control { width: 100%; min-width: 0; background: #fff; }
  .mobile-account-slot .mod-login .form-check { display: flex; align-items: center; gap: 7px; margin: 8px 0; }
  .mobile-account-slot .mod-login button[name="Submit"] { margin-top: 10px; }
  .mobile-account-slot .mod-login__options,
  .mobile-account-slot .plg_system_webauthn_login_button { display: none; }

  .nav-backdrop {
    position: fixed;
    z-index: 4990;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    border: 0;
    border-radius: 0;
    background: rgb(0 0 0 / 48%);
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
  .nav-backdrop.is-open { display: block; visibility: visible; opacity: 1; transition-delay: 0s; }

  .content-grid { grid-template-columns: 1fr; padding: 10px 15px 25px; }
  .content-grid .component-area,
  .content-grid.has-left .component-area,
  .content-grid.has-right .component-area,
  .content-grid.has-left.has-right .component-area { grid-column: 1; grid-row: auto; order: 1; padding: 0; }
  .sidebar-right { grid-column: 1; grid-row: auto; order: 2; padding: 0; }
  .sidebar-left { display: contents; }
  .sidebar-left > .module-card { grid-column: 1; grid-row: auto; order: 3; padding: 0; }
  .sidebar-left > .context-navigation { order: 0; margin: 0 0 12px; }
  .mobile-context-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #b9dbe8;
    border-radius: 4px;
    color: var(--infn-navy);
    background: var(--infn-pale);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }
  .mobile-context-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
  .mobile-context-toggle:hover,
  .mobile-context-toggle:focus,
  .context-navigation.is-mobile-open > .mobile-context-toggle { border-color: var(--infn-blue); background: #e5f4f9; }
  .context-navigation > .module-title { display: none; }
  .context-navigation > .module-content { display: none; }
  .context-navigation.is-mobile-open > .module-content { display: block; }
  .context-navigation .legacy-accordion.mod-menu { margin: 0; }
  .mobile-events-panel {
    display: block;
    margin: 8px 0 16px;
    padding: 14px;
    border: 1px solid #cbdde5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 45 75 / 7%);
  }
  .mobile-events-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--infn-navy);
    font-size: 18px;
    line-height: 24px;
  }
  .mobile-events-title .fa { color: var(--infn-cyan); font-size: 17px; }
  .mobile-events-list { display: block; }
  .mobile-events-list .mod_events_latest_table tr:nth-child(n+5) { display: none; }
  .mobile-events-list .mod_events_latest_table td { padding: 7px 0; border-bottom: 1px solid #dbe9ee; }
  .mobile-events-list .mod_events_latest_table .event-summary {
    width: calc(100vw - 60px);
    max-width: 100%;
    border-bottom: 0;
    font-size: 15px;
    line-height: 21px;
  }
  .mobile-events-list .mod_events_latest_date { color: #526b77; font-size: 11px; }
  .mobile-event-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }
  .mobile-event-actions .mod_events_latest_callink,
  .mobile-event-actions .mod-custom:has(a[href*="agenda.infn.it"]) { margin: 0; }
  .mobile-event-actions .mod_events_latest_callink a,
  .mobile-event-actions .mod-custom a[href*="agenda.infn.it"],
  .mobile-event-actions .mod-syndicate.syndicate-module {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 6px;
    border: 1px solid #b9dbe8;
    border-radius: 5px;
    color: #075f83;
    background: var(--infn-pale);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  .mobile-event-actions .mod_events_latest_callink a::before { flex: 0 0 auto; width: auto; margin-right: 5px; font-size: 13px; }
  .mobile-event-actions .mod_events_latest_callink a::after { font-size: 12px; }
  .mobile-event-actions .mod_events_latest_callink a { font-size: 0; }
  .mobile-event-actions .mod-custom a[href*="agenda.infn.it"] { font-size: 0; }
  .mobile-event-actions .mod-custom a[href*="agenda.infn.it"]::before {
    content: "\f073";
    margin-right: 5px;
    font-family: "Font Awesome 6 Free";
    font-size: 13px;
    font-weight: 900;
  }
  .mobile-event-actions .mod-custom a[href*="agenda.infn.it"]::after { content: "Indico"; font-size: 12px; }
  .mobile-event-actions .mod-custom a[href*="agenda.infn.it"] > * { display: none !important; }
  .mobile-event-actions .mod-syndicate.syndicate-module .icon-feed { flex: 0 0 auto; width: auto; margin-right: 5px !important; }
  .site-footer {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 18px;
    min-height: 0;
    padding: 18px;
    font-size: 12px;
    line-height: 18px;
  }
  .footer-identity {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 0 0 14px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }
  .footer-logo { grid-row: 1 / 3; float: none; margin: 0 14px 0 0; }
  .footer-logo img { width: 64px; }
  .footer-identity-name { padding: 0; font-size: 14px; line-height: 18px; }
  .footer-address { grid-column: 2; clear: none; padding: 3px 0 0; font-size: 11px; line-height: 17px; }
  .footer-social { display: flex; align-items: flex-start; padding: 0; text-align: left; }
  .footer-social > a { width: 28px; height: 28px; margin: 0 5px 0 0; font-size: 17px; line-height: 28px; }
  .footer-legal { padding: 0; text-align: right; font-size: 12px; line-height: 18px; }
  .footer-accessibility { margin-top: 7px; }
  .mobile-footer-institutional {
    display: block;
    grid-column: 1;
    grid-row: 3;
    padding-top: 0;
  }
  .footer-social { grid-column: 1; grid-row: 2; }
  .footer-legal { grid-column: 2; grid-row: 2 / span 2; }
  .mobile-footer-institutional-slot { display: block; }
  .mobile-footer-institutional-slot .mobile-institutional-link {
    display: inline-flex !important;
    position: relative;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 7px 11px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 5px;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-footer-institutional-slot .mobile-institutional-link a { position: absolute; z-index: 1; inset: 0; }
  .mobile-footer-institutional-slot .mobile-institutional-link img { display: none; }
  .mobile-footer-institutional-slot .mobile-institutional-link .fa { color: #7bd0ed; }
}

@media (max-width: 767px) {
  .intro-home { font-size: 15px; }
  .com-content-category-blog .blog-items.masonry-2 { grid-template-columns: 1fr; }
  .right-buttons { grid-template-columns: repeat(2, minmax(0, 168px)); }
  .sidebar-right .mod-custom > div:has(> .button-link) { grid-template-columns: repeat(2, minmax(0, 168px)); }
  .component-area .com-content-article__body > [style*="display: inline-block"] {
    display: block !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .brand-row { min-height: 80px; }
  .brand { font-size: 14px; }
  .brand strong { font-size: 14px; }
  .brand img { width: 86px; }
  .content-grid { padding: 10px 22px 24px; }
  .intro-home { padding: 7px; font-size: 14px; line-height: 16px; border-radius: 3px; }
  .component-area article, .legacy-article { font-size: 16px; }
  .legacy-title { font-size: 24px; }
  .legacy-article-image { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .footer-social { grid-column: 1; grid-row: 2; text-align: left; }
  .mobile-footer-institutional { grid-column: 1; grid-row: 3; }
  .footer-legal { grid-column: 1; grid-row: 4; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > img, .legacy-image-button img { transition: none; }
}

/* Informativa storica, comune a tutte le pagine del sito. */
.cookie-notice {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  padding: 16px 12px 0;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, .9);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .35);
  color: #fff;
  font: 13px/1.5 Arial, sans-serif;
  text-align: center;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { font-size: 14px; }
.cookie-notice a { color: #00aeef; font-weight: 700; text-decoration: underline; }
.cookie-notice-accept {
  display: block;
  min-width: 120px;
  margin: 4px auto 0;
  padding: 5px 20px;
  border: 0;
  border-radius: 3px;
  background: #008bea;
  color: #fff;
  font: 700 14px/1.2 Arial, sans-serif;
  cursor: pointer;
}
.cookie-notice-accept:hover { background: #0075c5; }
.cookie-notice a:focus-visible,
.cookie-notice-accept:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
