/* Change background of carousel */
.position-7 {
  background-color: #0066CC; /* Use your preferred color */
}

 h2.mb-4 {
  font-size: 28px;
  font-weight: bold;
  color: #003366;
  padding: 12px;
  margin-bottom: 3px !important;
  background-color: #DBDBD6;
  border-bottom: 1px solid #ccc;
font-family: "Titillium Web", sans-serif;
}

/* ==== MiM-style vertical sidebar for ANY MaxiMenu CK ==== */

/* Wrapper (vertical orientation) */
div.maximenuckv {
  background-color: #f9f9f9;
  border: 1px solid #e6e6e6;
  border-left: 4px solid #0066CC;       /* blue accent bar */
  border-radius: 4px;
  padding: 0;
  margin: 0 0 20px 0;                    /* space below the box */
}

/* Title above the menu (if you show module title) */
.moduletable h2,
.moduletable .module-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  color: #003366;
  margin: 0;
  padding: 12px 16px;
  /*border-bottom: 2px solid #0066CC;*/
  background-color: #DBDBD6;
  border-bottom: 1px solid #ccc;
}

/* Root UL */
div.maximenuckv ul.maximenuck {
  list-style: none;
  margin: 0;
  padding: 4px 0;                        /* small breathing space inside box */
}

/* Top-level LI spacing */
div.maximenuckv ul.maximenuck > li {
  margin: 0 0 4px 0;                     /* space between items */
  border-bottom: 1px solid #e9e9e9;
}

/* Remove last divider */
div.maximenuckv ul.maximenuck > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Links */
div.maximenuckv ul.maximenuck li > a,
div.maximenuckv ul.maximenuck li > span.separator {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: #279CD7;
  font-weight: 500;
  font-size: 16px;
}

/* Hover / Active / Current states */
div.maximenuckv ul.maximenuck li > a:hover,
div.maximenuckv ul.maximenuck li.active > a,
div.maximenuckv ul.maximenuck li.current > a {
  background-color: #e6f0fa;             /* light blue */
  color: #0066CC;
  font-weight: 700;
}

/* Optional: left highlight for active/current */
div.maximenuckv ul.maximenuck li.active > a,
div.maximenuckv ul.maximenuck li.current > a {
  box-shadow: inset 4px 0 0 #0066CC;
}

/* Submenus (indent and subtle guide line) */
div.maximenuckv ul.maximenuck li ul {
  margin: 6px 0 0 0;
  padding-left: 16px;                     /* indent children */
  border-left: 2px solid #dddddd;
}

/* Submenu items smaller & tighter */
div.maximenuckv ul.maximenuck li ul li > a,
div.maximenuckv ul.maximenuck li ul li > span.separator {
  padding: 1px 14px;
  font-size: 15px;
}

/* Optional chevron for items that have children */
/*div.maximenuckv ul.maximenuck li.maximenuck > a::after {
  content: "›";
  float: right;
  opacity: 0.5;
}*/

div.maximenuckv ul.maximenuck li.maximenuck:hover > a::after,
div.maximenuckv ul.maximenuck li.active > a::after,
div.maximenuckv ul.maximenuck li.current > a::after {
  opacity: 1;
}

/* Accessibility: clear focus ring for keyboard users */
div.maximenuckv a:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
  background-color: #e6f0fa;
}

/* Make sure images/icons don’t distort the line height */
div.maximenuckv .titreck img {
  display: none !important;
}
.breadcrumb {
  background: transparent;
  padding: 8px 0;
  margin: 0;
}

/********/
/* First level: bold */
div.maximenuckv ul.maximenuck > li > a,
div.maximenuckv ul.maximenuck > li > span.separator {
  font-weight: 700;
}

/*********/
.breadcrumb li {
  display: inline-block;
  font-size: 14px;
  color: #666;
}

.breadcrumb li + li:before {
  content: "›";
  margin: 0 6px;
  color: #999;
}

.breadcrumb li.active {
  color: #0066CC;
  font-weight: bold;
}

/* Wrapper della checklist */
.accessibility-checklist {
  background: #fff;
  border-left: 4px solid #0066CC;
  padding: 12px 16px;
  border-radius: 4px;
}

/* Titoli */
.accessibility-checklist h2 {
  font-weight: 700;
  color: #003366;
  border-bottom: 2px solid #0066CC;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.accessibility-checklist h3 {
  font-weight: 600;
  color: #003366;
  margin-top: 24px;
}

/* Tabelle (usano Bootstrap, qui le affiniamo) */
.accessibility-checklist table.table {
  background: #fff;
  margin-bottom: 16px;
}
.accessibility-checklist table.table thead th {
  background: #e6f0fa;         /* azzurrino coerente col tema */
  color: #003366;
  border-color: #dbe7ff;
  vertical-align: middle;
}
.accessibility-checklist table.table td,
.accessibility-checklist table.table th {
  border-color: #e5e5e5;
}

/* Celle di esito: rendiamo più leggibili “OK/KO” */
.accessibility-checklist td:nth-child(2) {
  font-weight: 600;
  text-align: center;
  width: 110px;
}

/* Responsive: evita overflow orizzontale su schermi piccoli */
@media (max-width: 576px) {
  .accessibility-checklist {
    padding: 10px 12px;
  }
  .accessibility-checklist table.table th,
  .accessibility-checklist table.table td {
    font-size: 0.95rem;
  }
}

/* Tabelle accessibilità: larghezze uniformi */
.accessibility-checklist table.table th:nth-child(1),
.accessibility-checklist table.table td:nth-child(1) {
  width: 30%;   /* colonna "Verifica" */
}

.accessibility-checklist table.table th:nth-child(2),
.accessibility-checklist table.table td:nth-child(2) {
  width: 15%;   /* colonna "Esito (OK/KO)" */
  text-align: center;
}

.accessibility-checklist table.table th:nth-child(3),
.accessibility-checklist table.table td:nth-child(3) {
  width: 25%;   /* colonna "Strumento/Metodo" */
}

.accessibility-checklist table.table th:nth-child(4),
.accessibility-checklist table.table td:nth-child(4) {
  width: 30%;   /* colonna "Note" */
}

/* Tabelle con 2 colonne (es. ultima tabella AGID) */
.accessibility-checklist table.table th:nth-child(1):last-child,
.accessibility-checklist table.table td:nth-child(1):last-child {
  width: 30%;
}

.accessibility-checklist table.table th:nth-child(2):last-child,
.accessibility-checklist table.table td:nth-child(2):last-child {
  width: 70%;
}

.sitemap-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-page ul li {
  margin: 4px 0;
  padding-left: 10px;
}
.sitemap-page h3 {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #003366;
}

.cookie-policy.uts-styled h1 {
  font-weight: 700;
  color: #003366;
  border-bottom: 2px solid #0066CC;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.cookie-policy.uts-styled h2 {
  font-weight: 600;
  color: #003366;
  margin-top: 22px;
}
.cookie-policy.uts-styled table.table thead th {
  background: #e6f0fa;
  color: #003366;
  border-color: #dbe7ff;
}
.cookie-policy.uts-styled table.table td,
.cookie-policy.uts-styled table.table th {
  border-color: #e5e5e5;
}

/* ACCESSO login button */
button.btn.login {
  position: fixed;
  top: 0px;
  right: 70px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ACCESSO text before icon */
button.btn.login::before {
  content: "ACCESSO";
  font-weight: 700;
  margin-right: 12px;
  color: #ffffff;
  font-size: 14px;
}

/* Restore and show user icon */
button.btn.login .icon-user,
button.btn.login .icon-fw {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
}

/* Hover */
button.btn.login:hover::before,
button.btn.login:hover .icon-user {
  color: #e6f0fa !important;
}

/* Logged-in area (Ciao Administrator + Exit) */
.logout,
.mod-login-logout,
.moduletable.logout,
form.logout {
    position: fixed;
    top: 0px;
    right: 60px;   /* same alignment as ACCESSO */
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Username text */
.logout span,
.logout .login-greeting,
.mod-login-logout .login-greeting {
    color: #ffffff !important;
    font-weight: 700;
}

/* Logout button */
.logout button,
.logout input[type="submit"],
.mod-login-logout button {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

/* Hover */
.logout button:hover,
.logout input[type="submit"]:hover,
.mod-login-logout button:hover,
.logout .login-greeting:hover {
    color: #e6f0fa !important;
}

/* ===================================================== */
/* FRONTEND EDIT LINK ("Modifica")                       */
/* ===================================================== */

/* Restore edit icon */
.icon-edit {
    display: inline-block !important;
}

/* Article title container */
.page-header,
.item-title,
.blog-item .page-header {
    position: relative;
}

/* Edit action close to title */
.icons,
.btn-toolbar,
.item-toolbar {
    display: inline-flex !important;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

/* Style edit link */
.icons a,
.btn-toolbar a,
.item-toolbar a {
    color: #0066CC !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 14px;
}

/* Keep icon visible and aligned */
.icons .icon-edit,
.btn-toolbar .icon-edit,
.item-toolbar .icon-edit {
    display: inline-block !important;
    margin-right: 4px;
    color: #0066CC !important;
}

/* Hover */
.icons a:hover,
.btn-toolbar a:hover,
.item-toolbar a:hover {
    color: #0055aa !important;
}

/* ===================================================== */
/* STYLE "LEGGI TUTTO" BUTTON                            */
/* ===================================================== */

.readmore a,
p.readmore a,
.btn.btn-secondary,
.btn.readmore {
    background-color: #0066CC !important;
    border: 1px solid #0055aa !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 8px 14px !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Hover effect */
.readmore a:hover,
p.readmore a:hover,
.btn.btn-secondary:hover,
.btn.readmore:hover {
    background-color: #0055aa !important;
    color: #ffffff !important;
}

/* ===================================================== */
/* HORIZONTAL MAXIMENUCK - TOP MENU                      */
/* ===================================================== */

div.maximenuckh {
  background-color: #0066CC;
  width: 100%;
  clear: both;
  z-index: 1000;
}

/* Root horizontal menu */
div.maximenuckh ul.maximenuck {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* First-level items */
div.maximenuckh ul.maximenuck > li {
  display: inline-block;
  position: relative;
  margin: 0 2px !important;
  padding: 0 !important;
  border-bottom: none !important;
}

/* First-level links */
div.maximenuckh ul.maximenuck > li > a,
div.maximenuckh ul.maximenuck > li > span.separator {
  display: block;
  padding: 8px 2px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
 white-space: nowrap;
}

/* Hover / active */
div.maximenuckh ul.maximenuck > li > a:hover,
div.maximenuckh ul.maximenuck > li.active > a,
div.maximenuckh ul.maximenuck > li.current > a {
  background-color: #0055aa;
  color: #ffffff !important;
}

/* Horizontal submenu */
div.maximenuckh ul.maximenuck li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  z-index: 9999;
}

/* Submenu items */
div.maximenuckh ul.maximenuck li ul li {
  display: block;
  width: 100%;
}

/* Submenu links */
div.maximenuckh ul.maximenuck li ul li > a,
div.maximenuckh ul.maximenuck li ul li > span.separator {
  display: block;
  padding: 8px 8px;
  color: #003366 !important;
  background-color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}