/* UOItalia Reborn — native readable stylesheet. Shared module frames, portal layout and component adapters. */

/* ================ 01 — Base storica, stili legacy e primi moduli ================ */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");
:root {
  --gold: #e9b95d;
  --cream: #f6dfae;
  --blue: #061a2c;
  --ink: #28150b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #f6e8c8;
  background: #090f16;
  font-family: Georgia,"Times New Roman",serif;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.site {
  max-width: 1536px;
  margin: auto;
  min-height: 100vh;
  background: linear-gradient(90deg,#02091188,transparent 14%,transparent 86%,#02091188),url("../images/britannia-map-background.jpg") center top/100% auto repeat-y;
  box-shadow: 0 0 80px #000;
}

.language {
  position: absolute;
  right: 22px;
  bottom: 10px;
  background: #071724e8;
  border: 1px solid var(--gold);
  padding: 7px 10px;
  color: #fff;
  border-radius: 4px;
}
.language button {
  background: none;
  border: 0;
  color: #f7dc9c;
  font-weight: bold;
}

.site > .layout {
  display: grid;
  grid-template-columns: 285px minmax(0,1fr) 245px;
  gap: 18px;
  padding: 18px 23px 50px;
}
:where(body:not(.uoi-forum-page)) .panel {
  box-shadow: 0 8px 20px #0009;
  margin-bottom: 17px;
  padding: 7px;
}
:where(body:not(.uoi-forum-page)) .panel h2 {
  margin: -3px -3px 8px;
  text-align: center;
  font-size: 24px;
  padding: 11px 5px;
}
.menuitem {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin: 3px 0;
  padding: 8px 8px;
  color: #291509;
  font-size: 15px;
  font-weight: bold;
}
.menuitem:hover {
  filter: brightness(1.12);
}
.submenu {
  display: none;
  background: #0c1f30;
  padding: 4px 10px 7px;
}
.submenu.open {
  display: block;
}
.submenu a {
  display: block;
  font-size: 14px;
  padding: 7px 4px;
  border-bottom: 1px solid #344456;
}
.submenu a:hover {
  color: var(--gold);
}
.parchment {
  position: relative;
  background: radial-gradient(ellipse at 50% 35%,#fff0c9,#efd09b 65%,#b27b3c);
  border: 14px solid transparent;
  border-image: linear-gradient(135deg,#8b5c2b,#f2cf87,#75471e) 1;
  box-shadow: 0 8px 24px #000b;
  color: var(--ink);
  padding: 24px 20px;
  min-height: 330px;
}
.parchment:before,.parchment:after {
  content: "";
  position: absolute;
  left: -13px;
  right: -13px;
  height: 15px;
  background: linear-gradient(90deg,#6b3e1c,#e7b66b 9%,#f7d69a 50%,#9a612a);
  border-radius: 40%;
  box-shadow: 0 3px 7px #0007;
}
.parchment:before {
  top: -12px;
}
.parchment:after {
  bottom: -12px;
}
.parchment h1 {
  text-align: center;
  font-size: clamp(25px,2.8vw,43px);
  margin: 0 0 6px;
  color: #581b0c;
}
.parchment h3 {
  text-align: center;
  font-size: 25px;
  font-style: italic;
  margin: 0 0 18px;
}
.intro:where(:not(#kunena *)) {
  display: grid;
  grid-template-columns: 43% 1fr;
  align-items: center;
  gap: 16px;
}
.intro:where(:not(#kunena *)) img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border: 5px ridge #8c6031;
}
.intro:where(:not(#kunena *)) p {
  text-align: center;
  font-weight: bold;
  line-height: 1.55;
  font-size: 17px;
}
.section-title {
  color: #ffdb92;
  text-shadow: 1px 2px 3px #000;
  text-align: center;
  margin: 21px 0 12px;
  font-size: 21px;
}
.news {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.news article {
  background: linear-gradient(#f6deb0,#d9a969);
  border: 7px ridge #956126;
  box-shadow: 0 5px 16px #000b;
  color: #2b180e;
  min-width: 0;
}
.news h3 {
  margin: 0;
  background: linear-gradient(#0a0b1d,#25213b);
  color: #f6dc9c;
  font-size: 18px;
  text-align: center;
  padding: 12px 5px;
  min-height: 66px;
}
.news img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.news p {
  font-size: 13px;
  margin: 10px;
}
.news button {
  margin: 0 10px 12px;
  padding: 6px 10px;
  border: 1px solid #70411d;
  background: #123552;
  color: #fff;
}
:where(body:not(.uoi-forum-page)) .login {
  padding: 11px 12px 15px;
  color: #26170e;
}
:where(body:not(.uoi-forum-page)) .login h2 {
  margin: 0 0 12px;
  text-align: center;
}
:where(body:not(.uoi-forum-page)) .login input:not([type=checkbox]) {
  width: 100%;
  margin: 5px 0;
  padding: 9px;
  background: #fff9e8;
  border: 2px inset #a77a43;
  color: #222;
}
:where(body:not(.uoi-forum-page)) .login label {
  font-size: 13px;
}
:where(body:not(.uoi-forum-page)) .login button,.cta:where(:not(#kunena *)),
:is(.uoi-article-content,.uoi-zoo-full-body) a:is(.button-default,.button-primary,.button-more) {
  background: linear-gradient(#22618e,#072944);
  border: 2px ridge #a37a44;
}
:where(body:not(.uoi-forum-page)) .login button,.cta:where(:not(#kunena *)) {
  color: white;
  padding: 9px 19px;
  font-weight: bold;
  margin: 8px 0;
}
:where(body:not(.uoi-forum-page)) .login a {
  display: block;
  color: #103b67;
  font-size: 14px;
  margin: 5px 0;
}

.donate {
  background: linear-gradient(#4b190e,#9d401d);
  border: 3px ridge #db9b42;
  color: #fff1bd;
  padding: 12px;
  text-align: center;
  margin-top: 13px;
}
.donate a {
  display: block;
  margin-top: 7px;
  text-decoration: underline;
}
:where(.site) > .footer {
  padding: 25px;
  text-align: center;
  background: #06111c;
  border-top: 3px ridge #9b713e;
  color: #d8c39a;
}
.notice {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: 330px;
  padding: 15px;
  background: #f3d6a0;
  color: #2d1b10;
  border: 3px ridge #a87539;
  box-shadow: 0 5px 30px #000b;
  z-index: 10;
  display: none;
}
.notice.show {
  display: block;
}
.notice button {
  float: right;
}
.mobilehint {
  display: none;
}
@media (max-width:1200px) {
  .site > .layout {
    grid-template-columns: 230px minmax(0,1fr) 205px;
    gap: 10px;
    padding: 14px;
  }
  .intro:where(:not(#kunena *)) {
    grid-template-columns: 1fr;
  }
  .intro:where(:not(#kunena *)) img {
    height: 180px;
  }
  .news {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:850px) {
  .site > .layout {
    grid-template-columns: 1fr;
  }
  .left,.right {
    display: none;
  }
  .news {
    grid-template-columns: 1fr;
  }
  .mobilehint {
    text-align: center;
    padding: 10px;
    color: #f6d7a1;
  }
}
.site {
  overflow: hidden;
}
.site:before,.site:after {
  background: repeating-linear-gradient(180deg,#182b36 0 35px,#4d5860 36px 38px,#071722 39px 74px);
}
.site > .layout,.lower-modules {
  position: relative;
  z-index: 1;
}
.lower-modules {
  margin: 4px 23px 0;
  padding: 35px 22px 90px;
  border-top: 5px ridge #b3894e;
  background: linear-gradient(#061726c9,#07111bd9),url("../images/castle-floor.png") center bottom/100% 115px no-repeat;
}
.lower-modules h2 {
  text-align: center;
  color: #f1d397;
  font-size: 25px;
  text-shadow: 0 3px 4px #000;
  margin: 0 0 22px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
}
.bottom-module {
  border: 5px ridge #9e733f;
  background: linear-gradient(150deg,#142f44,#071622);
  box-shadow: 0 7px 18px #000a;
  min-height: 198px;
  padding: 15px;
  color: #f1dfb5;
}
.bottom-module h3 {
  color: #f2c878;
  text-align: center;
  margin: 0 0 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid #8d6b43;
  font-size: 19px;
}
.bottom-module p {
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0;
}
.bottom-module a {
  display: block;
  padding: 7px 0;
  color: #d8e8f3;
  border-bottom: 1px solid #415264;
}
.bottom-module a:hover {
  color: #ffd78c;
}
.bottom-module .cta {
  display: block;
  text-align: center;
  margin-top: 15px;
}
.news article.placeholder {
  opacity: .92;
}
.news article.placeholder img {
  filter: saturate(.65) brightness(.8);
}
.news article.placeholder h3 {
  background: linear-gradient(#101e31,#263e54);
}
.news article.placeholder .placeholder-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #68451e;
  font-weight: bold;
}
.news article {
  display: flex;
  flex-direction: column;
}
.news article p {
  flex: 1;
}
@media (max-width:1200px) {
  .module-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:850px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
  .lower-modules {
    margin: 0 12px;
    padding: 24px 14px 70px;
  }
}
@media (min-width:1201px) {
  .site {
    max-width: 1740px;
  }
  .site > .layout {
    grid-template-columns: minmax(245px, 19%) minmax(0, 1fr) minmax(210px, 16%);
    gap: 16px;
    padding: 18px 22px 55px;
  }
  .parchment {
    min-height: 350px;
    padding: 24px 28px 27px;
  }
  .parchment h1 {
    font-size: clamp(34px,3.0vw,53px);
    white-space: nowrap;
    letter-spacing: -.02em;
  }
  .parchment h3 {
    font-size: clamp(22px,1.75vw,31px);
    margin-bottom: 17px;
  }
  .intro:where(:not(#kunena *)) {
    grid-template-columns: 45% minmax(0,1fr);
    gap: 22px;
  }
  .intro:where(:not(#kunena *)) img {
    height: 260px;
  }
  .intro:where(:not(#kunena *)) p {
    font-size: clamp(16px,1.2vw,21px);
    line-height: 1.48;
  }
  .news img {
    height: 170px;
  }
  .section-title {
    margin: 15px 0 12px;
  }
}
@media (min-width:1201px) and (max-width:1460px) {
  .parchment h1 {
    font-size: clamp(29px,2.9vw,42px);
    white-space: normal;
  }
  .intro:where(:not(#kunena *)) img {
    height: 220px;
  }
  .intro:where(:not(#kunena *)) p {
    font-size: 16px;
  }
}
.news {
  align-items: stretch;
  gap: 15px;
}
.news-image-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 6px;
  background: #101b2ccc;
  color: #fff2d5;
  font-size: 10px;
  text-align: center;
}
.news .read-more {
  align-self: flex-start;
  margin: 0 13px 15px;
  background: linear-gradient(#28638c,#092b48);
  color: #fff4d8;
  border: 2px ridge #c09553;
  padding: 9px 15px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 3px 7px #0004;
}
.news .read-more:hover {
  background: linear-gradient(#397fae,#164c73);
}
.news .read-more span {
  font-size: 18px;
  vertical-align: -1px;
}

.site::before,.site::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(35px,4.5vw,72px);
  height: auto;
  background-image: url("../images/castle-side-wall.jpg");
  background-color: transparent;
  background-size: 100% auto;
  background-repeat: repeat-y;
  box-shadow: none;
  opacity: 1;
}
.site::before {
  left: 0;
  right: auto;
  transform: none;
}
.site::after {
  right: 0;
  left: auto;
  transform: scaleX(-1);
}
@media (max-width:850px) {
  .site::before,.site::after {
    width: 18px;
    opacity: .82;
  }
}

.news-column .editorial-page::before {
  position: absolute;
  top: 8px;
  left: 15px;
  color: #9b672e;
  font-size: 24px;
}
.news-column .editorial-page::after {
  position: absolute;
  top: 8px;
  right: 15px;
  color: #9b672e;
  font-size: 24px;
}
.news-column .editorial-page .section-title {
  text-align: center;
  min-height: 0;
}
.news-column .editorial-page .section-title:before {
  position: absolute;
  left: 8%;
  top: 2px;
  font-size: 27px;
  color: #a77332 !important;
}
.news-column .editorial-page .section-title:after {
  position: absolute;
  right: 8%;
  top: 2px;
  font-size: 27px;
  color: #a77332 !important;
  transform: scaleX(-1);
}
.news-column .editorial-page .section-title {
  font-weight: 600;
  line-height: 1.2;
  background: none center bottom / min(75%,410px) 45px no-repeat;
  border: 0;
  display: none;
}
.news-column .editorial-page .news-heading-v77::before,
.news-column .editorial-page .news-heading-v77::after {
  content: none;
  display: none;
}
.news-column .news-parchment.editorial-page::before,
.news-column .news-parchment.editorial-page::after {
  content: "";
  display: block;
  position: absolute;
  top: 16px;
  width: 43px;
  height: 43px;
  background: transparent url("../images/corner-filigree-v83.svg") center/contain no-repeat;
  opacity: .66;
  pointer-events: none;
  z-index: 1;
  border: 0;
  box-shadow: none;
}
.news-column .news-parchment.editorial-page::before {
  left: 17px;
  right: auto;
  transform: none;
}
.news-column .news-parchment.editorial-page::after {
  right: 17px;
  left: auto;
  transform: scaleX(-1);
}
@media (max-width:700px) {
  .news-column .news-parchment.editorial-page::before,
 .news-column .news-parchment.editorial-page::after {
    width: 29px;
    height: 29px;
    top: 12px;
  }
  .news-column .news-parchment.editorial-page::before {
    left: 10px;
  }
  .news-column .news-parchment.editorial-page::after {
    right: 10px;
  }
}
.footer-v86-heading {
  text-align: center;
  margin: 0 0 29px;
}
.footer-v86-heading>span {
  font: 700 11px Georgia,serif;
  letter-spacing: .25em;
  color: #c7a36d;
}
.footer-v86-heading h2 {
  font: normal 34px Georgia,serif;
  color: #f5e5c7;
  margin: 7px 0 5px;
  text-shadow: 0 2px 4px #000;
}
.footer-v86-heading p {
  color: #aeb9c3;
  font-size: 14px;
  margin: 0;
}
.site .footer-v86-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 16px;
}
.site .footer-panel {
  min-height: 320px;
  padding: 24px 25px 22px;
  margin: 0;
  box-shadow: 0 12px 30px #0006;
  position: relative;
  border-radius: 3px;
  color: #e5e3df;
}
.site .footer-panel-a {
  border: 1px solid #82715c;
  background: linear-gradient(160deg,#172b39,#0b1a28 80%);
  border-top: 3px solid #c6a06b;
}
.site .footer-panel-b {
  border: 1px solid #526c7d;
  background: linear-gradient(145deg,#183a50,#102a3e 55%,#0c2234);
  border-top: 3px solid #6d9bb6;
}
.footer-panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.footer-small-icon {
  color: #d6b27a;
  font-size: 17px;
}
.footer-eyebrow {
  font: 700 10px Georgia,serif;
  letter-spacing: .16em;
  color: #bca78b;
}
.footer-panel-b .footer-eyebrow {
  color: #a7c8d9;
}
.site .footer-panel h3 {
  color: #f2e0bf;
  text-align: left;
  font: normal 25px Georgia,serif;
  border: 0;
  padding: 0;
  margin: 0 0 19px;
}
.footer-stat-feature {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #ffffff24;
  padding-bottom: 15px;
}
.footer-stat-feature strong {
  font: normal 38px Georgia,serif;
  color: #e8bd79;
}
.footer-stat-feature span {
  font-size: 13px;
  color: #bdc7cc;
}
.footer-stat-rows {
  margin-top: 13px;
}
.footer-stat-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ffffff14;
  font-size: 13px;
}
.footer-stat-rows strong {
  color: #dcb67b;
}
.footer-footnote {
  font: italic 11px/1.45 Georgia,serif;
  color: #aab2b7;
  margin: 17px 0 0;
}
.footer-social-intro,.site .footer-panel .footer-social-intro {
  font-size: 13px;
  line-height: 1.5;
  color: #c9d7e1;
  margin: 0 0 17px;
}
.site .footer-social-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 9px;
  margin: 9px 0;
  border: 1px solid #64809766;
  background: #ffffff0b;
  color: #f6ebd6;
  text-decoration: none;
}
.site .footer-social-link:hover {
  background: #ffffff1a;
  border-color: #b2b7bb;
}
.footer-social-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 5px;
  color: white;
  font: bold 26px Arial,sans-serif;
}
.footer-social-symbol.fb {
  background: #2565a3;
}
.footer-social-symbol.yt {
  background: #bc3532;
  font-size: 17px;
}
.footer-social-link strong {
  display: block;
  font-size: 15px;
}
.footer-social-link small {
  display: block;
  font-size: 11px;
  color: #b5c4d0;
  margin-top: 3px;
}
.footer-link-arrow {
  margin-left: auto;
  color: #d5bd90;
  font-size: 21px;
}
.site .footer-link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
}
.site .footer-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #d7d9d8;
  padding: 11px 0;
  border-bottom: 1px solid #ffffff20;
  font-size: 13px;
}
.site .footer-link-list a:hover {
  color: #f0c782;
}
.footer-link-list a span {
  color: #c7a06c;
}
.site .footer-v86-legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 17px 60px;
  background: #050c14;
  border-top: 1px solid #4d4a45;
  font: 12px Georgia,serif;
  color: #a6a8a8;
  text-align: left;
}
@media (max-width:1100px) {
  .site .footer-v86-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site .footer-v86-grid .footer-panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width:700px) {
  .site .footer-v86-grid .footer-panel:last-child {
    grid-column: auto;
  }
  .site .footer-v86-legal {
    padding: 16px 25px;
  }
  .footer-v86-heading h2 {
    font-size: 29px;
  }
}
.site .footer-v86 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 23px;
  padding: 42px 36px 44px;
  background: linear-gradient(180deg,rgba(9,20,31,.92),rgba(10,24,35,.96)),url("../images/castle-masonry.png") center/cover;
  border-top: 2px solid #9c7951;
  box-shadow: inset 0 13px 25px #0008,0 -8px 22px #0005;
}
.site .footer-v86::before,.site .footer-v86::after{
  content: "";
  position: absolute;
  pointer-events: none;
}
.site .footer-v86::before {
  inset: 7px 12px auto;
  height: 1px;
  background: linear-gradient(90deg,transparent,#b99a69 16%,#d1b58b 50%,#b99a69 84%,transparent);
  opacity: .55;
}
.site .footer-v86::after {
  inset: auto 0 0;
  height: 78px;
  background: linear-gradient(0deg,#050c14a6,transparent);
  z-index: -1;
}
.site .footer-v86-heading {
  margin: 0 auto 30px;
  max-width: 650px;
}
.site .footer-v86-heading>span {
  font-size: 10px;
  letter-spacing: .32em;
  color: #c6a477;
}
.site .footer-v86-heading h2 {
  font: normal clamp(28px,2.6vw,37px) Georgia,serif;
  letter-spacing: .012em;
  margin: 8px 0 11px;
  color: #f0dfc2;
}
.site .footer-v86-heading h2::after {
  content: "";
  display: block;
  width: 110px;
  height: 1px;
  margin: 13px auto 0;
  background: linear-gradient(90deg,transparent,#b99a69,transparent);
}
.site .footer-v86-heading p {
  font: 13px/1.5 system-ui,sans-serif;
  letter-spacing: .025em;
  color: #bac4ca;
}
.site .footer-v86-grid .footer-panel {
  border-radius: 2px;
  min-height: 315px;
  padding: 25px 25px 23px;
  overflow: hidden;
  box-shadow: 0 12px 23px #0007,inset 0 0 0 1px #ffffff0c;
  transition: transform .2s ease,box-shadow .2s ease;
}
.site .footer-v86-grid .footer-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 27px #0009,inset 0 0 0 1px #ffffff13;
}
.site .footer-v86-grid .footer-panel-a {
  background: linear-gradient(150deg,#1b3040 0%,#0c1d2c 77%);
  border: 1px solid #786b59;
  border-top: 2px solid #c3a06b;
}
.site .footer-v86-grid .footer-panel-b {
  background: linear-gradient(155deg,#183b50 0%,#112a3d 63%,#0d2231);
  border: 1px solid #5d7a87;
  border-top: 2px solid #86b2c5;
}
.site .footer-v86-grid .footer-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid #d4b98b18;
}
.site .footer-v86-grid .footer-panel::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-top: 1px solid #c6a36c6b;
  border-right: 1px solid #c6a36c6b;
}
.site .footer-v86-grid .footer-panel-b::after {
  border-color: #8fc1d16b;
}
.site .footer-v86-grid .footer-panel h3 {
  font-size: 24px;
  letter-spacing: .01em;
  margin-bottom: 17px;
}
.site .footer-v86-grid .footer-panel-top {
  margin-bottom: 12px;
}
.site .footer-v86-grid .footer-eyebrow {
  font-family: system-ui,sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
}
.site .footer-v86-grid .footer-footnote {
  font-size: 11px;
  line-height: 1.5;
  opacity: .8;
}
.site .footer-v86-grid a {
  transition: color .2s ease,background-color .2s ease,border-color .2s ease;
}
@media (max-width:850px) {
  .site .footer-v86 {
    margin: 0 10px;
    padding: 35px 18px;
  }
  .site .footer-v86-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion:reduce) {
  .site .footer-v86-grid .footer-panel {
    transition: none;
  }
}
.site {
  background-image: linear-gradient(90deg,#02091188,transparent 14%,transparent 86%,#02091188),url("../images/britannia-map-background.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
}

@media (max-width:700px) {
  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview {
    margin: 20px 12px;
  }
}
.news-column .chronicle-v99 .chronicle-lead--v99 {
  margin: 0 0 22px;
  padding: 8px 0 30px;
}
/* Desktop CMS grid is owned by uoi-joomla.css. Keep fractional breakpoint fallback. */
@media (min-width:801px) {
  .news-column .chronicle-v99 .chronicle-lead--v99:where(:not(.news-column .uoi-cms-news .chronicle-lead--v99.has-image)) {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
    gap: 35px;
    align-items: center;
  }
}
@media not all and (min-width:801px) {
  .news-column .chronicle-v99 .chronicle-lead--v99 {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
    gap: 35px;
    align-items: center;
  }
}
.news-column .chronicle-v99 .chronicle-lead--v99 .v99-illustration {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
}
/* Width for CMS lead images is supplied by uoi-joomla.css. */
.news-column .chronicle-v99 .chronicle-lead--v99 .v99-illustration:where(:not(.news-column .uoi-cms-news .chronicle-lead--v99.has-image > .v99-illustration)) {
  max-width: 330px;
}
.news-column .chronicle-v99 .chronicle-lead--v99 .v99-story-copy {
  grid-column: 1;
  grid-row: 1;
}
.news-column .chronicle-v99 .chronicle-lead--v99 h2 {
  font-size: clamp(27px,2.8vw,43px);
}
/* Legacy clipping: Joomla CMS lead descriptions own their reset in uoi-joomla.css. */
.news-column .chronicle-v99 .chronicle-lead--v99 .chronicle-description:where(:not(.news-column .uoi-cms-news .chronicle-lead .chronicle-description)) {
  -webkit-line-clamp: 8;
}
.news-column .chronicle-v99 .v99-illustration {
  display: block;
  float: none;
  max-width: 100%;
  height: auto;
  margin: 0 0 15px !important;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.news-column .chronicle-v99 .v99-illustration img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
  border: 1px solid #b6a184 !important;
  box-shadow: 0 3px 10px #60452624 !important;
  background: none !important;
}
.news-column .chronicle-v99 .v99-illustration--poster img {
  max-height: 520px !important;
  width: auto !important;
}
.news-column .chronicle-v99 .v99-illustration--wide img {
  width: 100% !important;
  max-height: none !important;
}
.news-column .chronicle-v99 .v99-illustration--logo img {
  width: auto !important;
  max-height: 125px !important;
  border: 0 !important;
  box-shadow: none !important;
}
.news-column .chronicle-v99 .v99-illustration figcaption {
  font: italic 10px/1.3 Georgia,serif;
  color: #917957;
  text-align: center;
  margin: 8px 0 0;
}
.news-column .chronicle-v99 .chronicle-item--v99 {
  break-inside: avoid-column;
  display: flow-root;
}
.news-column .chronicle-v99 .chronicle-item--v99 .chronicle-description {
  display: block;
}
.news-column .chronicle-v99 .chronicle-item--logo .v99-illustration {
  margin: 12px 0 !important;
}
.news-column .chronicle-v99 .chronicle-item--logo .v99-illustration:where(:not(.news-column .uoi-cms-news .chronicle-item--v99 .v99-illustration)) {
  max-width: 78%;
}
.news-column .chronicle-v99 .chronicle-item--text .chronicle-description {
  font-style: italic;
}
@media (max-width:800px) {
  .news-column .chronicle-v99 .chronicle-lead--v99 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news-column .chronicle-v99 .chronicle-lead--v99 .v99-illustration {
    grid-row: 2;
    grid-column: 1;
  }
  .news-column .chronicle-v99 .chronicle-lead--v99 .v99-illustration:where(:not(.news-column .uoi-cms-news .chronicle-lead--v99.has-image > .v99-illustration)) {
    max-width: 290px;
  }
  .news-column .chronicle-v99 .chronicle-lead--v99 .v99-story-copy {
    grid-row: 1;
    grid-column: 1;
  }
}

/* ================ 02 — Layout della homepage, moduli, pergamena e prime revisioni ================ */

.layout-v06 {
  display: flex !important;
  flex-direction: column !important;
  gap: 23px !important;
  padding: 22px 26px 52px !important;
}
.welcome-row {
  display: grid;
  align-items: stretch;
}
.welcome-row .login {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-row {
  display: grid;
  align-items: start;
}
.news-column {
  min-width: 0;
}
.news-column .section-title {
  margin: 4px 0 16px;
}
.news-column .news {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}
.sidebar-column {
  min-width: 0;
}
.sidebar-column .left {
  display: block;
}

.sidebar-column .donate {
  margin-top: 16px;
}
.demo-session {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 20;
  background: #071e31;
  border: 2px ridge #d4a35b;
  color: #f9e3b6;
  padding: 10px 14px;
  box-shadow: 0 6px 22px #000b;
  font-size: 13px;
}
.demo-session button {
  margin-left: 8px;
  background: #f0d49b;
  color: #26170b;
  border: 1px solid #b98c4e;
  padding: 5px 9px;
  font-weight: bold;
}
@media (max-width:1100px) {
  .layout-v06 {
    padding: 14px !important;
  }
  .news-column .news {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:760px) {
  .news-column .news {
    grid-template-columns: 1fr !important;
  }
  .welcome-row .login {
    min-height: 0;
  }
  .layout-v06 {
    gap: 14px !important;
  }
  .demo-session {
    position: static;
    margin: 8px;
  }
}
.welcome-row,.content-row {
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
}
.welcome-row .login {
  width: 100%;
}
.news-parchment .section-title {
  text-align: center;
}
.news-column .news {
  align-items: stretch;
}
.news-parchment .news .read-more {
  margin: 0;
  align-self: flex-start;
}
@media (max-width:1100px) {
  .welcome-row,.content-row {
    grid-template-columns: minmax(0,1fr) 230px;
    gap: 12px;
  }
}
@media (max-width:760px) {
  .welcome-row,.content-row {
    grid-template-columns: 1fr;
  }
}
.intro-shortcuts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.intro-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  background: linear-gradient(180deg,#234f70 0%,#0d2c48 55%,#071b2e 100%);
  color: #ffe8b0;
  border: 3px ridge #b58a4d;
  font-weight: bold;
  letter-spacing: .045em;
  text-shadow: 0 2px 2px #000;
}
.intro-shortcuts a:hover,.intro-shortcuts a:focus-visible {
  background: linear-gradient(#376f93,#153e60);
  outline: 2px solid #e8bc6c;
  outline-offset: 2px;
}
@media (max-width:950px) {
  .intro-shortcuts {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
:root {
  --parchment-ink: #392515;
  --parchment-red: #703a22;
  --parchment-gold: #9b713d;
}
.welcome-row .parchment:before,.welcome-row .parchment:after,
.news-parchment:before,.news-parchment:after {
  content: "❧";
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  left: 7px;
  right: auto;
  color: #8c5a2c;
  font: 32px Georgia,serif;
  line-height: 40px;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .78;
}
.welcome-row .parchment:before,.news-parchment:before {
  top: 4px;
}
.welcome-row .parchment:after,.news-parchment:after {
  top: 4px;
  bottom: auto;
  left: auto;
  right: 7px;
  transform: scaleX(-1);
}
.welcome-row .parchment h1 {
  text-shadow: 0 1px #fff6dd;
}
.welcome-row .parchment h3:after,.news-parchment .section-title:after {
  content: "✦  ❦  ✦";
  display: block;
  margin: 12px auto 0;
  color: #976c3b;
  font-weight: normal;
}
.welcome-row .intro p {
  text-shadow: 0 1px #fff2d2;
}
.news-parchment .section-title {
  letter-spacing: .035em;
}
.news-parchment .news .read-more {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #95683a;
  box-shadow: none;
  padding: 5px 1px 4px;
  font-size: 13px;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 1px #fff1cf;
}
.news-parchment .news .read-more:hover {
  background: transparent;
  color: #a04422;
  border-color: #a04422;
}
.intro-shortcuts a {
  border-color: #b78d55;
  box-shadow: inset 0 1px 0 #ffffff38,0 2px 5px #55331d55;
}
.welcome-row .parchment,.news-parchment {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 64px solid transparent;
  border-image-source: url("../images/scroll-frame.png");
  border-image-slice: 135 135 135 135;
  border-image-width: 64px;
  border-image-repeat: stretch;
  border-image-outset: 8px;
  outline: 0;
  border-radius: 0;
  background: #e8bd7c url("../images/parchment-fiber.png") center/420px 360px repeat;
  box-shadow: 0 18px 27px #000a,inset 0 0 48px #a1693680;
  color: #30180f;
}
.welcome-row .parchment {
  padding: 0 6px 12px;
  min-height: 0;
}
.news-parchment {
  padding: 0 8px 14px;
}
.welcome-row .parchment:before,.welcome-row .parchment:after,.news-parchment:before,.news-parchment:after {
  display: none;
}
.welcome-row .parchment h1 {
  font-variant: normal;
  color: #50190d;
  font-size: clamp(27px,2.5vw,43px);
  white-space: normal;
  letter-spacing: -.03em;
}
.welcome-row .parchment h3 {
  color: #4d2516;
  font-style: italic;
  font-size: clamp(19px,1.6vw,26px);
  font-weight: bold;
}
.welcome-row .parchment h3:after {
  content: "༺ ❖ ༻";
  font-size: 17px;
  margin: 8px auto 0;
  color: #78421c;
  letter-spacing: .16em;
}
.welcome-row .intro img {
  border: 0;
  box-shadow: 0 4px 14px #47250b88;
  clip-path: polygon(3% 0,100% 3%,98% 100%,0 97%);
}
.welcome-row .intro p {
  font-size: clamp(14px,1.1vw,18px);
  line-height: 1.48;
  color: #2c170e;
}
.intro-shortcuts {
  margin-top: 18px;
  gap: 8px;
}
.intro-shortcuts a {
  min-height: 43px;
  padding: 7px 4px;
  font-size: clamp(11px,1vw,14px);
}
.news-parchment .section-title {
  font-variant: normal;
  font-size: clamp(22px,2.2vw,34px);
  color: #54220e;
  text-shadow: 0 1px #ffe3aa;
  margin: 0 0 24px;
}
.news-parchment .section-title:after {
  content: "— ✥ —";
  margin-top: 8px;
  font-size: 17px;
  letter-spacing: .18em;
}
.news-parchment .news .read-more {
  color: #672c16;
  font-weight: bold;
}
:where(body:not(.uoi-forum-page)) .login {
  background: #dfb778 url("../images/parchment-fiber.png") center/420px 360px repeat;
  border: 7px ridge #96632b;
  box-shadow: inset 0 0 25px #8b562e99,0 9px 20px #000a;
}
:where(body:not(.uoi-forum-page)) .panel {
  background: linear-gradient(130deg,#07131ee8,#1a2938e8);
  border: 6px ridge #9e713b;
}
:where(body:not(.uoi-forum-page)) .panel h2 {
  background: #ddb06c url("../images/parchment-fiber.png") center/420px 360px repeat;
  border: 4px ridge #9c6932;
  color: #3c1d0d;
  text-shadow: 0 1px #ffde9b;
}
.menuitem {
  background: linear-gradient(90deg,#bd8949,#f1d39a 20%,#e8bb77 80%,#b17c3d);
  border: 2px ridge #a46e2e;
}
@media (max-width:1100px) {
  .welcome-row .parchment,.news-parchment {
    border-width: 40px;
    border-image-width: 40px;
  }
  .welcome-row .parchment {
    padding: 0 3px 10px;
  }
  .news-parchment {
    padding: 0 4px 10px;
  }
}
@media (max-width:760px) {
  .welcome-row .parchment,.news-parchment {
    border-width: 30px;
    border-image-width: 30px;
  }
}
.news-column .news-parchment:before,.news-column .news-parchment:after {
  display: none;
}
.news-column .news-parchment .section-title {
  text-align: center;
}
.news-column .news-parchment .news {
  gap: 15px !important;
}
.news-column .news-parchment .news .read-more {
  text-decoration: none !important;
}
.news-column .news-parchment {
  outline: 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: radial-gradient(ellipse at 12% 8%,#fff8e0b8 0%,transparent 44%),radial-gradient(ellipse at 86% 87%,#c9985852,transparent 55%),linear-gradient(135deg,#ecd1a0,#f6e5c2 48%,#dfbb80);
  border: 9px ridge #a77b48;
  border-image: none;
  border-radius: 3px;
  box-shadow: inset 0 0 35px #87501f55,0 12px 28px #000a;
  padding: 24px 20px 28px;
  color: #392515;
}
.news-column .news-parchment .section-title {
  color: #703a35 !important;
  font-size: clamp(23px,2.1vw,33px);
  text-shadow: 0 1px #fff2d1;
  margin: 6px 0 22px;
  font-variant: small-caps;
  letter-spacing: .035em;
}
.news-column .news-parchment .section-title:after {
  display: block;
  content: "✦  ❧  ✦";
  font-size: 13px;
  color: #9b713d !important;
  margin-top: 10px;
}
.news-column .news {
  gap: 0 !important;
}
.news-column .news-parchment .news .read-more {
  margin: 0 !important;
  align-self: flex-start !important;
  background: linear-gradient(#28638c,#092b48) !important;
  color: #fff4d8 !important;
  border: 2px ridge #c09553 !important;
  padding: 9px 15px !important;
}
.welcome-row .login:before,.sidebar-column .panel:before {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: -1;
  border: 5px solid transparent;
  border-image: url("../images/castle-masonry.png") 45 round;
  opacity: .65;
  display: none;
}
@media (max-width:1100px) {
  .news-column .news-parchment {
    padding: 15px 10px;
  }
}
.welcome-row .login,.sidebar-column .panel {
  box-sizing: border-box;
  isolation: isolate;
  position: relative;
  background: #d6a866 url("../images/parchment-fiber.png") center / 420px 360px repeat;
  border: 36px solid transparent;
  border-image-source: url("../images/stone-parchment-panel.png");
  border-image-slice: 100 fill;
  border-image-width: 36px;
  border-image-repeat: stretch;
  border-radius: 0;
  box-shadow: 0 10px 22px #0009;
  color: #2f1b0b;
  padding: 0 3px 7px;
  min-width: 0;
}
.welcome-row .parchment {
  background: #e8bf83 url("../images/parchment-fiber.png") center / 420px 360px repeat;
  background-clip: padding-box;
  border-image-source: url("../images/scroll-frame.png");
  border-image-slice: 135 fill;
  border-image-width: 64px;
  border-image-repeat: stretch;
  box-shadow: 0 8px 24px #0008;
}
@media (max-width:1100px) {
  .welcome-row .login,.sidebar-column .panel {
    border-width: 29px;
    border-image-width: 29px;
  }
}
@media (max-width:760px) {
  .welcome-row .login,.sidebar-column .panel {
    border-width: 27px;
    border-image-width: 27px;
  }
}
.welcome-row .login h2,.sidebar-column .panel h2 {
  background: #d7a66a url("../images/module-heading.png") center/100% 100% no-repeat;
  border: 0;
  box-shadow: 0 2px 5px #47250b55;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(18px,1.4vw,23px);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -.035em;
  margin: 0 0 7px;
  padding: 11px 3px 12px;
  color: #2c1609;
  text-shadow: 0 1px #f9dfa6;
}
.welcome-row .login form {
  margin: 0;
  padding: 0;
}
.welcome-row .login input:not([type=checkbox]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  background: #e7c38c url("../images/module-field.png") center/100% 100% no-repeat;
  border: 1px solid #9c703d;
  border-radius: 1px;
  box-shadow: inset 0 1px 3px #62432255;
  color: #2e1a0c;
  font: 14px Georgia,serif;
  margin: 0 0 7px;
  padding: 6px 9px;
}
.welcome-row .login input::placeholder {
  color: #6c5031;
  opacity: 1;
}
.welcome-row .login label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin: 1px 0 7px;
  white-space: nowrap;
}
.welcome-row .login button[type=submit] {
  display: block;
  margin: 3px auto 8px;
  min-width: 105px;
  padding: 7px 11px;
  background: linear-gradient(#22638c,#08243b);
  border: 2px ridge #cda45c;
  border-radius: 2px;
  color: #fff0c6;
  font: bold 15px Georgia,serif;
  text-shadow: 0 1px #000;
}
.welcome-row .login>a {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #133d5c;
  margin: 0;
}
@media (max-width:1100px) {
  .sidebar-column .panel h2,.welcome-row .login h2 {
    font-size: 17px;
  }
}
.uoi-head-icon {
  flex: none;
  font-size: 24px;
  line-height: 1;
}
.uoi-menu {
  padding: 0 0 1px;
  margin: 0;
  background: transparent;
}
.uoi-entry {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 16px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 53px;
  margin: 0 0 5px;
  padding: 7px 10px 7px 9px;
  border: 1px solid #6d421c;
  border-radius: 4px;
  color: #2b180c;
  background: #e7bd80 url("../images/module-entry.png") center / 100% 100% no-repeat;
  box-shadow: inset 0 1px 0 #fff0bd,0 2px 4px #000a;
  font: 700 clamp(13px,1.04vw,17px)/1.15 Georgia,serif;
  text-shadow: 0 1px 1px #fff0cc;
  text-align: left;
  cursor: pointer;
}
.uoi-entry:hover {
  filter: brightness(1.06);
}
.uoi-entry:focus-visible {
  outline: 3px solid #ffe0a0;
  outline-offset: 2px;
}
.uoi-icon {
  display: block;
  width: 23px;
  height: 25px;
  object-fit: contain;
  filter: sepia(.5) saturate(1.5) contrast(1.15);
}
.uoi-label {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.uoi-arrow {
  font: bold 24px/1 Georgia,serif;
  text-align: right;
  color: #372011;
}
.uoi-submenu {
  display: none;
  margin: -4px 5px 6px;
  padding: 4px 8px 6px 34px;
  background: #e6c18c url("../images/module-entry.png") center / 100% 100% no-repeat;
  border: 1px solid #8b5b31;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 6px #0008;
}
.uoi-submenu.open {
  display: block;
}
.uoi-submenu a {
  display: block;
  padding: 9px 2px;
  color: #3a2616;
  font: 400 14px/1.2 Georgia,serif;
  border-bottom: 1px solid #9b734c;
  text-shadow: 0 1px #fff0ce;
}
.uoi-submenu a:last-child {
  border-bottom: 0;
}
.uoi-submenu a:hover {
  text-decoration: underline;
  color: #6c3018;
}
@media (max-width:1200px) {
  .uoi-entry {
    grid-template-columns: 21px minmax(0,1fr) 13px;
    gap: 5px;
    font-size: 13px;
    min-height: 51px;
    padding: 7px 6px;
  }
  .uoi-icon {
    width: 20px;
    height: 22px;
  }
  .uoi-arrow {
    font-size: 20px;
  }
}

/* ================ 03 — Cornici approvate e struttura grafica ================ */

.auth-module {
  --uoi-frame-fill: #171b20;
  --uoi-frame-rail-width: 6.8%;
  --uoi-frame-stone-top: url("../images/auth-stone-top.png");
  --uoi-frame-stone-left: url("../images/auth-left-stone.png");
  --uoi-frame-stone-right: url("../images/auth-right-stone.png");
  width: 100%;
  max-width: 340px;
  margin: 0 auto 13px;
  filter: drop-shadow(0 4px 6px #0009);
  color: #281709;
}
.auth-head,.auth-foot{
  width: 100%;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.auth-head {
  aspect-ratio: 285/67;
  position: relative;
}
.auth-head-guide {
  background-image: url("../images/auth-guide-head.png");
}
.auth-head-world {
  background-image: url("../images/auth-world-head.png");
}
.auth-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.auth-body {
  position: relative;
  background: var(--uoi-frame-fill);
  padding: 0 var(--uoi-frame-rail-width) 1px;
  isolation: isolate;
}
.auth-body::before,.auth-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--uoi-frame-rail-width);
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  z-index: 0;
  pointer-events: none;
}
.auth-body::before {
  left: 0;
  background-image: var(--uoi-frame-stone-left);
}
.auth-body::after {
  right: 0;
  background-image: var(--uoi-frame-stone-right);
}
.auth-menu {
  position: relative;
  z-index: 1;
  padding: 0 1.4%;
}
/* Native guide and world menu: final approved values, with sidebar-specific icon dimensions. */
.auth-menu .auth-item {
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) 23px;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 31px;
  margin: 0 0 2px;
  padding: 2px 9px 2px 7px;
  background: #e8c28d linear-gradient(180deg,#f2d5a4 0%,#e8c28d 48%,#dcb17a 100%) center/100% 100% no-repeat;
  color: #28170a;
  font: 700 clamp(11px,.92vw,14px)/1.06 Georgia,serif;
  text-align: left;
  text-shadow: 0 1px #f9dfad;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #79502b;
  box-shadow: 0 2px 3px #0008;
  border-radius: 7px;
}
.auth-menu .auth-item:hover,.auth-menu .auth-item:focus-visible {
  filter: brightness(1.09);
  outline: 1px solid #f0c178;
  outline-offset: 0;
}
.auth-menu .auth-item:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 1px;
}
.auth-menu .auth-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  letter-spacing: -.2px;
}
.auth-menu .auth-arrow {
  font: 700 24px/1 Georgia,serif;
  color: #25170b;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 100%;
  min-height: 24px;
  transform: translate(-4px,-2px);
}
.auth-menu .auth-icon {
  display: block;
  visibility: visible;
  opacity: 1;
  width: 24px;
  height: 28px;
  min-width: 24px;
  object-fit: contain;
  mix-blend-mode: normal;
  background: transparent;
  filter: none;
  justify-self: center;
}
.auth-menu .auth-submenu {
  display: none;
  margin: -1px 1px 3px;
  padding: 3px 8px 5px 32px;
  background: #cda16a;
  border: 1px solid #674325;
  border-top: 0;
  box-shadow: inset 0 2px 4px #0002;
  border-radius: 0 0 7px 7px;
}
.auth-menu .auth-submenu.open {
  display: block;
}
.auth-menu .auth-submenu a {
  display: block;
  padding: 7px 1px;
  color: #30200f;
  font: 13px/1.2 Georgia,serif;
  border-bottom: 1px solid #956f48;
  overflow-wrap: break-word;
}
.auth-menu .auth-submenu a:last-child {
  border-bottom: 0;
}
.auth-menu .auth-submenu a:hover,.auth-menu .auth-submenu a:focus-visible {
  color: #744010;
  text-decoration: underline;
}
@media (max-width:1200px) {
  .auth-menu .auth-item {
    row-gap: 3px;
    padding-right: 7px;
    font-size: clamp(10px,.9vw,12px);
    grid-template-columns: 22px minmax(0,1fr) 20px;
  }
  .auth-menu .auth-arrow {
    width: 20px;
    font-size: 21px;
    transform: translate(-3px,-2px);
  }
}
@media (max-width:760px) {
  .auth-menu .auth-item {
    font-size: 14px;
    grid-template-columns: 26px minmax(0,1fr) 23px;
  }
}
.auth-foot {
  aspect-ratio: 285/20;
}
.auth-foot-guide {
  background-image: url("../images/auth-guide-foot.png");
}
.auth-foot-world {
  background-image: url("../images/auth-world-foot.png");
}
.welcome-row .auth-login-module {
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 4px 6px #0009);
}
/* Shared login frame (homepage and sidebar) — common stone tokens are inherited from .auth-module. */
.auth-login-module .auth-login-head {
  flex: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: auto;
  height: 84px;
  min-height: 84px;
  padding: 15px 0 7px;
  overflow: visible;
  isolation: isolate;
  z-index: 4;
  background: var(--uoi-frame-fill) var(--uoi-frame-stone-top) center top/100% 15px no-repeat;
}
.auth-login-module .auth-login-head::before,.auth-login-module .auth-login-head::after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  width: var(--uoi-frame-rail-width);
  z-index: 0;
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
}
.auth-login-module .auth-login-head::before {
  left: 0;
  background-image: var(--uoi-frame-stone-left);
}
.auth-login-module .auth-login-head::after {
  right: 0;
  background-image: var(--uoi-frame-stone-right);
}
.auth-login-module .auth-login-title {
  position: relative;
  left: auto;
  transform: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(100% - 22px);
  max-width: calc(100% - 22px);
  min-height: 58px;
  height: auto;
  margin: 0 auto;
  padding: 10px 27px;
  border: 2px solid #6e4525;
  border-radius: 0;
  background: radial-gradient(circle at 12px 12px,#5a402b 0 1.35px,transparent 1.65px),
    radial-gradient(circle at calc(100% - 12px) 12px,#5a402b 0 1.35px,transparent 1.65px),
    radial-gradient(circle at 12px calc(100% - 12px),#5a402b 0 1.35px,transparent 1.65px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px),#5a402b 0 1.35px,transparent 1.65px),
    linear-gradient(180deg,#fff1d3 0%,#f0ce9a 34%,#d6a36a 76%,#ad7143 100%) #e3c6a2;
  font: 600 clamp(17px,1.38vw,22px)/1.1 "Cinzel",Georgia,serif;
  letter-spacing: .018em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  color: #301b10;
  text-shadow: 0 2px 2px #54362166;
  box-shadow: 0 3px 7px #0008;
}
.auth-login-module .auth-login-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 17px 10% 16px;
  background: var(--uoi-frame-fill);
}
@media (max-width:1100px) {
  .auth-login-module .auth-login-head {
    height: 76px;
    min-height: 76px;
  }
  .auth-login-module .auth-login-body {
    padding-left: 9%;
    padding-right: 9%;
  }
}
.welcome-row .auth-login-module .auth-foot {
  flex: none;
  background-image: url("../images/auth-world-foot.png");
}
@media (max-width:760px) {
  .welcome-row .auth-login-module {
    min-height: 350px;
  }
}

.site {
  position: relative;
  isolation: isolate;
}
/* Native Bootstrap dialogs and their body-level backdrop must share a stacking context.
   The normal site layers are restored automatically when the backdrop closes. */
body.modal-open:has(> .modal-backdrop) .site {
  isolation: auto;
  overflow: visible;
  --uoi-content-layer: auto;
  --uoi-open-stats-layer: 1000;
  --uoi-forum-dropdown-layer: 1000;
}
.site::before,.site::after {
  z-index: 0;
  pointer-events: none;
}
.site > .stats,.site > .hero {
  position: relative !important;
  z-index: 2 !important;
}

.site > .layout,.site > .lower-modules,.site > .mobilehint,.site > .footer {
  position: relative;
  z-index: var(--uoi-content-layer, 2);
}

.site>.hero .hero-brand {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 3px 7px #001322);
}
.site>.hero .hero-assist,.site>.hero .hero-runuo {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 2px 4px #000);
}
.site>.hero .language {
  z-index: 4;
  right: 3%;
  bottom: 9px;
}
@media (max-width:850px) {
  .site>.hero .hero-assist,.site>.hero .hero-runuo {
    display: none;
  }
}
.site>.hero {
  height: 194px;
  background: url("../images/banner-v70.jpg") center center / 100% 100% no-repeat;
  border-top: 0;
  border-bottom: 0;
  overflow: visible;
}
.site>.hero .hero-brand {
  width: min(44%,610px);
  left: 28%;
  top: 4%;
  height: auto;
  max-height: 143px;
  object-fit: contain;
}
.site>.hero .hero-assist,.site>.hero .hero-runuo{
  bottom: 7%;
  width: clamp(85px,9%,135px);
}
.site>.hero .hero-assist {
  left: 31%;
}
.site>.hero .hero-runuo {
  left: 66%;
}
@media (max-width:1000px) {
  .site>.hero {
    height: 165px;
  }
  .site>.hero .hero-brand {
    width: 48%;
    left: 26%;
    top: 5%;
    max-height: 122px;
  }
}
@media (max-width:850px) {
  .site>.hero {
    height: 135px;
  }
  .site>.hero .hero-brand {
    width: 60%;
    left: 20%;
    top: 8%;
    max-height: 104px;
  }
}

/* ================ 04 — Layout News v71 ================ */
.news-column .editorial-page:before,.news-column .editorial-page:after {
  display: none;
  content: none;
}
.news-column .editorial-page .section-title {
  font-family: Georgia,"Times New Roman",serif;
  font-style: italic;
  font-variant: normal;
  text-transform: none;
  color: #63272d !important;
  text-shadow: none;
  font-size: clamp(27px,2.6vw,42px);
  letter-spacing: 0;
  margin: 0 0 25px;
  padding: 0 0 17px;
  border-bottom: 1px solid #d6c9b9;
}
.news-column .editorial-page .section-title:before,.news-column .editorial-page .section-title:after {
  display: none;
  content: none;
}
.news-column .editorial-page .news {
  display: grid !important;
  align-items: stretch !important;
}

/* ================ 05 — Corpo editoriale News v72 ================ */

.news-column .news-parchment.editorial-page {
  outline-offset: -12px;
  outline: 0;
  position: relative;
  isolation: isolate;
  border: 1px solid #d9d1c5;
  border-radius: 2px;
  box-shadow: 0 8px 25px #0009, inset 0 0 38px rgba(117,88,56,.075);
  color: #29221c;
  padding: 38px clamp(22px,3vw,46px) 66px;
  min-height: 1180px;
  background: linear-gradient(90deg,rgba(112,88,58,.055),transparent 5%,transparent 95%,rgba(112,88,58,.055)),#fffefa;
}
.news-column .editorial-page .section-title {
  margin-bottom: 30px;
  padding-bottom: 22px;
}
.news-column .editorial-page .news {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  column-gap: 28px !important;
  row-gap: 0 !important;
}
@media (max-width:950px) {
  .news-column .editorial-page .news {
    grid-template-columns: 1fr !important;
  }
}

/* ================ 06 — Testata News v77 ================ */

.news-column .editorial-page .news-heading-v77 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  background: none;
  box-shadow: none;
}
.news-column .editorial-page .news-heading-emblem {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #30201025);
}
.news-column .editorial-page .news-heading-v77 h1 {
  font-variant: normal;
  text-transform: none;
  text-shadow: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.news-column .editorial-page .news-heading-v77 {
  margin: 0 auto 0;
  padding: 0 14px 0;
  gap: 0;
}
.news-column .editorial-page .news-heading-emblem {
  width: clamp(64px,5.5vw,83px);
  height: clamp(64px,5.5vw,83px);
  margin: 0 auto 1px;
}
.news-column .editorial-page .news-heading-v77 h1 {
  font-family: "Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  font-size: clamp(31px,3.35vw,49px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.13;
  color: #632d3e !important;
}
.news-column .editorial-page .news-section-rule {
  display: block;
  position: relative;
  visibility: visible;
  width: calc(100% - 90px);
  max-width: none;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: 20px auto 25px;
  border: 0;
  background: linear-gradient(90deg,transparent 0%,#b79a62 12%,#ae8b4e 50%,#b79a62 88%,transparent 100%);
  box-shadow: none;
  opacity: 1;
}
.news-column .editorial-page .news-section-rule::before {
  content: "";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  top: -3px;
  left: calc(50% - 4px);
  background: #b69a64;
  border: 1px solid #f7f0e3;
  transform: rotate(45deg);
}
.news-column .editorial-page .news-section-rule::after {
  content: none;
  display: none;
}
@media (max-width:950px) {
  .news-column .editorial-page .news-section-rule {
    width: calc(100% - 44px);
    margin: 17px auto 23px;
  }
}

/* ================ 07 — Stampa materiali Zoo v84 ================ */

/* ================ 08 — Slider e navigazione v85 ================ */

.welcome-row .cinema-showcase {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #061523;
  border: 2px solid #b58a4c;
  box-shadow: 0 10px 24px #000b, inset 0 0 0 3px #08121d;
  color: #fff5dc;
  padding: 5px;
  isolation: isolate;
}
.cinema-stage {
  height: clamp(315px,27vw,420px);
  position: relative;
  overflow: hidden;
  background: #071522;
}
.cinema-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease,visibility .65s;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg,rgba(3,12,23,.98) 0%,rgba(5,18,30,.91) 31%,rgba(5,18,30,.5) 55%,rgba(3,11,20,.08) 100%),var(--scene);
  background-position: center,center;
  background-size: cover;
}
.cinema-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.cinema-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid #dbb36c55;
  box-shadow: inset 0 0 50px #010911a8;
}
.cinema-copy {
  position: relative;
  z-index: 1;
  width: min(58%,590px);
  padding: 25px 25px 30px clamp(30px,4vw,64px);
  text-shadow: 0 2px 8px #000;
}
.cinema-kicker {
  display: block;
  color: #dfb971;
  letter-spacing: .18em;
  font: 700 11px Georgia,serif;
  margin-bottom: 15px;
}
.cinema-copy h1 {
  font-family: Georgia,"Palatino Linotype",serif !important;
  font-size: clamp(29px,3vw,47px) !important;
  line-height: 1.09 !important;
  color: #ffe8b7 !important;
  text-align: left !important;
  font-weight: 600 !important;
  margin: 0 0 16px !important;
  text-shadow: 0 3px 9px #000 !important;
}
.cinema-copy h1 em {
  font-weight: 400;
  color: #e5b86e;
}
.cinema-copy p {
  font-size: clamp(14px,1.1vw,17px);
  line-height: 1.55;
  color: #f6ead6;
  margin: 0 0 22px;
  max-width: 480px;
}
.cinema-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  background: linear-gradient(#27638a,#0b3152 65%,#071e34);
  border: 2px solid #c39a58;
  color: #fff0c8;
  font: bold 13px Georgia,serif;
  letter-spacing: .045em;
  box-shadow: inset 0 1px #9ab2bb70,0 4px 12px #0008;
}
.cinema-cta span {
  font-size: 24px;
  line-height: .6;
  color: #eac17b;
}
.cinema-cta:hover {
  filter: brightness(1.22);
}
.cinema-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 54px;
  border: 1px solid #bc955b;
  background: #071c2bdc;
  color: #eec782;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.cinema-prev {
  left: 5px;
}
.cinema-next {
  right: 5px;
}
.cinema-arrow:hover {
  background: #174c70;
}
.cinema-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 3px;
  background: #06121d;
  padding: 5px 0 1px;
}
.cinema-tabs button {
  min-width: 0;
  border: 1px solid #6e624f;
  background: linear-gradient(#183e5b,#0a2339);
  color: #e9d5b3;
  padding: 12px 4px;
  font: 700 clamp(10px,.95vw,14px) Georgia,serif;
  letter-spacing: .025em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.cinema-tabs button span {
  color: #d6a75e;
  margin-right: 6px;
  font-size: 11px;
}
.cinema-tabs button.is-active {
  background: linear-gradient(#2c6183,#103655);
  border-color: #d6ae69;
  color: #fff7e4;
  box-shadow: inset 0 2px #e6bd76;
}
.cinema-progress {
  height: 3px;
  background: #0c1b28;
  overflow: hidden;
}
.cinema-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #d6ad67;
}
@media (max-width:950px) {
  .cinema-copy {
    width: 75%;
    padding-left: 38px;
  }
  .cinema-stage {
    height: 360px;
  }
}
.cinema-tabs button .cinema-tab-icon {
  display: inline-flex;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin: 0;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.cinema-tabs button .cinema-tab-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #0009);
}
.cinema-tabs button.is-active .cinema-tab-icon img {
  filter: brightness(1.19) drop-shadow(0 0 3px #e6bc6b55);
}
@media (max-width:620px) {
  .cinema-stage {
    height: 440px;
  }
  .cinema-slide {
    background-image: linear-gradient(0deg,#06111bf7 0%,#06111bcf 45%,#06111b22 100%),var(--scene);
    background-position: center,center;
  }
  .cinema-copy {
    width: 100%;
    align-self: end;
    padding: 28px 25px 42px;
  }
  .cinema-copy h1 {
    font-size: 31px !important;
  }
  .cinema-copy p {
    font-size: 14px;
  }
  .cinema-tabs button {
    font-size: 9px;
    padding: 11px 2px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .cinema-tabs button span {
    display: block;
    margin: 0 0 3px;
  }
  .cinema-arrow {
    top: 36%;
  }
  .cinema-tabs button .cinema-tab-icon {
    flex-basis: 100%;
    height: 19px;
  }
  .cinema-tabs button .cinema-tab-icon img {
    width: 19px;
    height: 19px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .cinema-slide {
    transition: none;
  }
}

.gallery90 {
  margin: 22px 0 30px;
  padding: 24px 24px 22px;
  background: linear-gradient(155deg,rgba(12,31,47,.96),rgba(8,22,35,.97));
  border: 1px solid #9c7845;
  box-shadow: inset 0 0 0 3px rgba(203,157,78,.1);
  color: #eee1c6;
  position: relative;
}
.gallery90:before,.gallery90:after {
  content: "✧";
  position: absolute;
  top: 9px;
  color: #d0a762;
  font-size: 19px;
}
.gallery90:before {
  left: 12px;
}
.gallery90:after {
  right: 12px;
}
.gallery90-head {
  text-align: center;
  padding: 0 10px 18px;
}
.gallery90-kicker {
  display: block;
  font: 700 10px Georgia,serif;
  letter-spacing: .18em;
  color: #c8a66e;
  margin-bottom: 8px;
}
.gallery90 h2 {
  margin: 0 0 8px;
  color: #f1d59d;
  font: normal clamp(27px,2.4vw,39px) Georgia,"Palatino Linotype",serif;
  line-height: 1.2;
}
.gallery90 h2 em {
  font-weight: normal;
}
.gallery90 p {
  font: italic 15px/1.5 Georgia,serif;
  color: #e6dac7;
  margin: 0 auto;
  max-width: 680px;
}
.gallery90-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.gallery90-shot {
  display: block;
  min-width: 0;
  position: relative;
  padding: 0;
  border: 1px solid #a78655;
  background: #091421;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 2px 8px #0007;
}
.gallery90-shot img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease,filter .25s ease;
}
.gallery90-shot:hover img,.gallery90-shot:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.12);
}
.gallery90-shot span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 8px 7px;
  background: linear-gradient(transparent,#06111bdc);
  color: #fff0cd;
  text-align: left;
  font: 12px Georgia,serif;
}
.gallery90-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding-top: 19px;
}
.gallery90-actions a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  background: linear-gradient(#1f5072,#09283f);
  border: 1px solid #c9a467;
  box-shadow: inset 0 0 0 2px #071927;
  color: #f8e3b8;
  text-decoration: none;
  font: bold 16px Georgia,serif;
}
.gallery90-actions a:hover {
  filter: brightness(1.2);
}
.gallery90-actions small {
  font: 11px Georgia,serif;
  color: #a9a5a0;
}
.gallery90-lightbox {
  border: 1px solid #c6a06c;
  background: #071523;
  color: #eee1c6;
  padding: 12px;
  max-width: min(90vw,1050px);
  max-height: 90vh;
}
.gallery90-lightbox::backdrop {
  background: #000d;
}
.gallery90-lightbox img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  width: auto;
  margin: 0 auto;
}
.gallery90-close {
  float: right;
  margin-bottom: 8px;
  border: 1px solid #b89b65;
  background: #102c44;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
}
.gallery90-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  clear: both;
  padding: 0 64px;
}
.gallery90-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid #c9a467;
  background: linear-gradient(#173954,#0b2134);
  color: #f8e3b8;
  font: 700 26px/1 Georgia,serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #0008;
  z-index: 2;
}
.gallery90-nav:hover,.gallery90-nav:focus-visible,.gallery90-close:hover,.gallery90-close:focus-visible {
  filter: brightness(1.12);
  outline: 1px solid #ebcc8e;
  outline-offset: 1px;
}
.gallery90-prev {
  left: 0;
}
.gallery90-next {
  right: 0;
}
.gallery90-status {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #d8c395;
  font: 12px Georgia,serif;
  letter-spacing: .06em;
}
@media (max-width:700px) {
  .gallery90-stage {
    padding: 0 48px;
    gap: 10px;
  }
  .gallery90-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .gallery90 {
    padding: 20px 12px;
  }
  .gallery90-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .gallery90-shot img {
    height: 120px;
  }
}
.site > .gallery90 {
  width: calc(100% - 44px);
  max-width: none;
  box-sizing: border-box;
  margin: 34px auto 42px;
  padding: 34px clamp(20px,3vw,54px) 30px;
  clear: both;
}
.site > .gallery90 .gallery90-head {
  padding-bottom: 26px;
}
.site > .gallery90 .gallery90-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(12px,1.6vw,25px);
}
.site > .gallery90 .gallery90-shot img {
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.site > .gallery90 .gallery90-shot span {
  font-size: clamp(13px,1vw,17px);
  padding: 25px 14px 12px;
}
.site > .gallery90 .gallery90-actions {
  padding-top: 25px;
}
@media (max-width:800px) {
  .site > .gallery90 {
    width: calc(100% - 24px);
    padding: 22px 14px;
  }
  .site > .gallery90 .gallery90-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:460px) {
  .site > .gallery90 .gallery90-grid {
    grid-template-columns: 1fr;
  }
}
.site > .home-gallery-module {
  display: block;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: calc(100% - 46px);
  margin: 22px auto 0;
  padding: 0;
  clear: both;
  isolation: isolate;
}
.site > .home-gallery-module > .gallery-module-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(24px,3vw,44px) clamp(20px,3.5vw,58px) 32px;
  background: linear-gradient(145deg,rgba(17,38,55,.96),rgba(7,19,33,.98));
  border: 1px solid #9e7a4d;
  box-shadow: inset 0 0 0 3px rgba(208,167,97,.09),0 5px 20px rgba(0,0,0,.14);
}
.site > .home-gallery-module .gallery90-head {
  padding-bottom: 25px;
}
.site > .home-gallery-module .gallery90-shot span {
  font-size: clamp(12px,1vw,16px);
  padding: 25px 12px 10px;
}
.site > .home-gallery-module .gallery90-actions {
  padding-top: 24px;
}
.site > .home-gallery-module + .lower-modules {
  margin-top: 22px;
}
@media (max-width:800px) {
  .site > .home-gallery-module {
    width: calc(100% - 24px);
    margin-top: 18px;
  }
  .site > .home-gallery-module > .gallery-module-card {
    padding: 22px 14px;
  }
}
.site > .home-gallery-module .gallery90-shot {
  border: 1px solid #a88a5f;
  outline: 3px solid rgba(5,16,25,.82);
  outline-offset: -5px;
  box-shadow: 0 2px 10px #0009, inset 0 0 0 1px #f1d6a844;
  transition: border-color .22s,box-shadow .22s;
}
.site > .home-gallery-module .gallery90-shot:hover,.site > .home-gallery-module .gallery90-shot:focus-visible {
  border-color: #eed098;
  box-shadow: 0 0 0 1px #d9b979,0 4px 15px #000a;
}
.site > .home-gallery-module .gallery90-shot img {
  height: auto;
  object-fit: cover;
  filter: saturate(.92) contrast(1.07);
  aspect-ratio: 16/9;
}
.site > .home-gallery-module .gallery90-shot::before,.site > .home-gallery-module .gallery90-shot::after {
  position: absolute;
  z-index: 2;
  color: #e2c184;
  font-size: 10px;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  content: none;
}
.site > .home-gallery-module .gallery90-shot::before {
  top: 5px;
  left: 8px;
}
.site > .home-gallery-module .gallery90-shot::after {
  top: 5px;
  right: 8px;
}
.gallery-side-teaser {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.gallery-side-teaser img {
  background: transparent !important;
}
body:not(.page-home) .site > .home-gallery-module {
  display: none !important;
}
@media (max-width:370px) {
  .site > .home-gallery-module .gallery90-shot .gallery90-shot-caption {
    font-size: 10px;
  }
}
.site > .home-gallery-module .gallery90-grid {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(12px,1.25vw,17px);
}
@media (max-width:600px) {
  .site > .home-gallery-module .gallery90-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 490px;
    gap: 10px;
  }
}

/* ================ 10 — Layout News editoriale v98-v99 ================ */

.news-column section.news-parchment.editorial-page:has(.chronicle-v98) {
  min-height: 0;
}
.news-column .editorial-page:has(.chronicle-v98) .news-heading-v77 h1 {
  color: #193448 !important;
  text-shadow: 0 1px 0 #fff7e8;
  font-size: clamp(30px,3vw,42px);
}
.news-column .editorial-page .chronicle-v98 {
  width: 100%;
  color: #302a20;
  position: relative;
  font-family: Georgia,"Times New Roman",serif;
}
.news-column .chronicle-v98 * {
  box-sizing: border-box;
}
.news-column .chronicle-v98 a {
  text-decoration: none;
  color: inherit;
}
.news-column .chronicle-paper-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 11px 0 21px;
  padding: 0 1px;
  color: #8b754f;
  font: 700 10px/1.25 Georgia,serif;
  letter-spacing: .19em;
}
.news-column .chronicle-lead {
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr);
  gap: 27px;
  align-items: center;
  padding: 0 0 28px;
  margin: 0 0 20px;
  border-bottom: 1px solid #bca680;
}
.news-column .chronicle-meta {
  border: 0;
  text-transform: none;
}
/* CMS metadata typography and spacing belong to uoi-joomla.css. */
.news-column .chronicle-meta:where(:not(.news-column .uoi-cms-news :is(.chronicle-item--v99,.chronicle-lead--v99) .chronicle-meta)) {
  display: flex;
  align-items: center;
  gap: 7px;
  font: italic 12px/1.5 Georgia,serif;
  color: #806b54;
  margin: 0 0 9px;
  padding: 0;
}
.news-column .chronicle-v98 h2,.news-column .chronicle-v98 h3 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  text-align: left;
  min-height: 0;
  text-transform: none;
  letter-spacing: -.018em;
  font-family: Georgia,"Times New Roman",serif;
  color: #17384e !important;
  text-shadow: 0 1px 0 #fff8eb;
}
.news-column .chronicle-v98 h2 {
  font-weight: normal;
  font-size: clamp(24px,2.35vw,33px);
  line-height: 1.15;
}
.news-column .chronicle-v98 h3 {
  font-weight: bold;
  font-size: clamp(19px,1.5vw,24px);
  line-height: 1.17;
}
.news-column .chronicle-v98 h2 a:hover,.news-column .chronicle-v98 h3 a:hover {
  color: #88602c !important;
}
.news-column .chronicle-description {
  color: #473a2f !important;
  font: normal 14px/1.64 Georgia,serif;
  margin: 0 0 13px;
  padding: 0;
  white-space: normal;
}
.news-column .chronicle-lead .chronicle-description {
  font-size: 15px;
  line-height: 1.6;
}
.news-column .chronicle-lead .chronicle-description:where(:not(.news-column .uoi-cms-news .chronicle-lead .chronicle-description)) {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-column .chronicle-read {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  align-self: flex-start;
  margin: 3px 0 0;
  padding: 0 0 3px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b19a70;
  outline: 0;
  box-shadow: none;
  color: #1d4761 !important;
  font: 700 12px/1.25 Georgia,serif;
  letter-spacing: .045em;
  text-shadow: none;
  border-radius: 0;
}
.news-column .chronicle-read span {
  font-size: 23px;
  color: #ac824a;
  line-height: 13px;
}
.news-column .chronicle-read:hover {
  color: #9c632b !important;
  border-bottom-color: #9c632b;
}
.news-column .chronicle-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #8d7551;
  margin: 0 0 19px;
  font: 700 11px/1.3 Georgia,serif;
  letter-spacing: .15em;
}
.news-column .chronicle-chapter:before,.news-column .chronicle-chapter:after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg,transparent,#bba27c);
}
.news-column .chronicle-chapter:after {
  transform: scaleX(-1);
}
.news-column .chronicle-chapter span:first-child,.news-column .chronicle-chapter span:last-child {
  font-size: 14px;
  color: #ae8953;
}
.news-column .chronicle-columns {
  column-count: 2;
  column-gap: 36px;
  column-rule: 1px solid #d0c0a4;
  padding: 0 0 10px;
}
.news-column .chronicle-item {
  display: flow-root;
  break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin: 0 0 22px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #cfbea1;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.news-column .chronicle-item:last-child {
  margin-bottom: 0;
}
.news-column .chronicle-item h3 {
  margin-bottom: 8px;
}
.news-column .chronicle-item .chronicle-description {
  font-size: 13.2px;
  line-height: 1.55;
}
.news-column .chronicle-endmark {
  font: italic 12px Georgia,serif;
  text-align: center;
  color: #9c815c;
  margin: 25px 0 0;
  letter-spacing: .04em;
}
.news-column .chronicle-endmark span {
  padding: 0 12px;
}
@media (max-width:1050px) {
  .news-column .chronicle-lead {
    gap: 18px;
  }
  .news-column .chronicle-columns {
    column-gap: 25px;
  }
  .news-column .chronicle-v98 h3 {
    font-size: 20px;
  }
}
@media (max-width:800px) {
  .news-column .chronicle-lead {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-column .chronicle-columns {
    column-count: 1;
    column-rule: 0;
  }
  .news-column .chronicle-item {
    break-inside: auto;
  }
  .news-column .chronicle-paper-meta {
    font-size: 9px;
    letter-spacing: .08em;
    flex-wrap: wrap;
  }
}
@media (max-width:480px) {
  .news-column .chronicle-paper-meta span:nth-child(2) {
    display: none;
  }
  .news-column .chronicle-lead .chronicle-description {
    font-size: 14px;
  }
  .news-column .chronicle-chapter {
    letter-spacing: .07em;
    gap: 7px;
  }
  .news-column .chronicle-chapter span:first-child,.news-column .chronicle-chapter span:last-child {
    display: none;
  }
}

/* ================ 12 — Slider v102, main menu v105, Gallery e lingue ================ */

@media (max-width:1100px) {

  /* Persistent current section in the compact menu; independent of hover/open. */

  .site .uoi-menu-secondary,
  .site .navwrap .nav small.uoi-menu-secondary,
  .site .auth-menu .uoi-menu-secondary {
    display: none !important;
    visibility: hidden !important;
  }

  .mobilehint {
    display: none;
  }
}

/* ================ 13 — Login e Logout v108 ================ */

.uoi-logout-wrap {
  display: none;
  justify-content: center;
  padding: 0 0 14px;
}
.uoi-logout-button {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 7px 21px;
  border: 1px solid #dfb775;
  outline: 2px solid #081c2c;
  outline-offset: -5px;
  background: linear-gradient(#2b688e 0%,#114568 43%,#08243b 100%);
  box-shadow: inset 0 1px #e3c88a77,inset 0 -2px #051523,0 4px 9px #0008;
  color: #ffedc5;
  font: 700 15px Georgia,serif;
  letter-spacing: .065em;
  text-shadow: 0 2px 3px #00101b;
  cursor: pointer;
  transition: filter .16s ease;
}
.uoi-logout-button svg {
  height: 21px;
  width: 21px;
  stroke: #e8bd70;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.uoi-logout-button:hover,.uoi-logout-button:focus-visible {
  filter: brightness(1.18);
}
.uoi-logout-button:focus-visible {
  outline: 2px solid #fff0ca;
  outline-offset: 3px;
}
@media (max-width:760px) {
  .uoi-logout-wrap {
    padding-bottom: 13px;
  }
  .uoi-logout-button {
    min-height: 44px;
  }
}

/* ================ 14 — Pagina interna / Regolamento v110 ================ */

body.page-article .welcome-row,
body.page-article .home-gallery-module {
  display: none !important;
}
body.page-article .content-row {
  margin-top: 8px;
}
body.page-article .news-parchment {
  min-height: 780px;
}
.uoi-article {
  max-width: 100%;
  color: #1d2b33;
  padding: 10px clamp(8px,1.7vw,25px) 46px;
}
.uoi-article .article-path {
  font: 600 12px Georgia,serif;
  color: #805d36;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.uoi-article .article-path a {
  color: #114263;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.uoi-article .article-eyebrow {
  font: 700 11px Georgia,serif;
  color: #956c37;
  letter-spacing: .18em;
  text-align: center;
  margin: 7px 0 15px;
}
.uoi-article h1 {
  font: normal clamp(29px,3vw,47px)/1.12 Georgia,serif;
  color: #0b2d48;
  text-align: center;
  margin: 0 0 10px;
}
.uoi-article .article-meta {
  font: italic 12px Georgia,serif;
  text-align: center;
  color: #836443;
  margin: 0 0 24px;
}
.uoi-article .article-rule {
  height: 1px;
  background: linear-gradient(to right,transparent,#a98752 20%,#a98752 80%,transparent);
  margin: 22px 0 26px;
  position: relative;
}
.uoi-article .article-rule:after {
  content: "◆";
  position: absolute;
  top: -9px;
  left: 50%;
  background: #fffaf0;
  color: #b58b50;
  font-size: 13px;
  padding: 0 8px;
  transform: translateX(-50%);
}
.uoi-article .article-intro {
  text-align: center;
  font: italic clamp(15px,1.3vw,18px)/1.65 Georgia,serif;
  max-width: 780px;
  margin: 0 auto 23px;
  color: #2d4050;
}
.uoi-article .article-principle {
  max-width: 850px;
  margin: 0 auto 25px;
  text-align: center;
  padding: 14px 22px;
  border-top: 1px solid #c4a777;
  border-bottom: 1px solid #c4a777;
  background: rgba(229,204,156,.2);
  font: 17px/1.5 Georgia,serif;
  color: #173955;
}
.uoi-article .article-index {
  margin: 16px 0 34px;
  padding: 17px 23px 20px;
  background: rgba(235,217,174,.28);
  border-top: 1px solid #c3a879;
  border-bottom: 1px solid #c3a879;
}
.uoi-article .article-index strong {
  font: 700 12px Georgia,serif;
  letter-spacing: .15em;
  color: #895b27;
  display: block;
  margin: 0 0 12px;
  text-align: center;
}
.uoi-article .article-index-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px 15px;
}
.uoi-article .article-index a {
  font: 13px Georgia,serif;
  color: #184663;
  text-decoration: none;
  border-bottom: 1px dotted #b8a384;
  padding: 3px 0;
}
.uoi-article .article-index a:hover {
  color: #95611e;
  text-decoration: underline;
}
.uoi-article .rules-section {
  padding: 0 0 12px;
  margin: 0 0 17px;
  scroll-margin-top: 20px;
}
.uoi-article .rules-section h2 {
  color: #133a56;
  font: 700 clamp(19px,1.6vw,24px)/1.25 Georgia,serif;
  margin: 0 0 12px;
  letter-spacing: .015em;
  border-bottom: 1px solid #baa57c;
  padding: 0 0 10px;
  text-align: left;
}
.uoi-article .rules-section h2:before {
  content: "✦";
  font-size: 12px;
  color: #b38d4b;
  margin-right: 11px;
  vertical-align: middle;
}
.uoi-article .rules-section p,.uoi-article .rules-section li {
  font: 15px/1.7 Georgia,serif;
  color: #263747;
}
.uoi-article .rules-section p {
  margin: 0 0 12px;
}
.uoi-article .rules-section ul {
  padding-left: 23px;
  margin: 0 0 12px;
}
.uoi-article .rules-section li {
  margin-bottom: 8px;
  padding-left: 2px;
}
.uoi-article .rules-section li::marker {
  color: #a77838;
}
.uoi-article .rules-section + .rules-section {
  border-top: 1px solid rgba(163,125,73,.3);
  padding-top: 18px;
}
.uoi-article .article-footer {
  border-top: 1px solid #b3a17f;
  margin-top: 24px;
  padding: 22px 0 5px;
  text-align: center;
}
.uoi-article .article-footer a {
  display: inline-block;
  background: linear-gradient(#245a79,#0c2b43);
  padding: 10px 22px;
  color: #fff0cb;
  border: 1px solid #c9a467;
  font: 700 13px Georgia,serif;
}
.uoi-article .article-note {
  font: italic 12px/1.5 Georgia,serif;
  color: #827052;
  text-align: center;
  margin: 12px auto;
  max-width: 620px;
}
@media (max-width:1050px) {
  .uoi-article .article-index-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px) {
  .uoi-article {
    padding: 5px 4px 25px;
  }
  .uoi-article .article-index-list {
    grid-template-columns: 1fr;
  }
  .uoi-article .article-path {
    font-size: 11px;
  }
  .uoi-article .rules-section p,.uoi-article .rules-section li {
    font-size: 14px;
  }
}

body.page-article .uoi-article .news-heading-v77 h1 {
  color: #123b57 !important;
  font-family: Georgia,serif !important;
  font-weight: normal !important;
}
body.page-article .uoi-article .article-meta {
  font-size: 12px !important;
  color: #836443 !important;
}

body[data-uoi-locale="en"] .auth-head-guide {
  background-image: url("../images/auth-guide-head-en.png");
}
body[data-uoi-locale="en"] .auth-head-world {
  background-image: url("../images/auth-world-head-en.png");
}
.auth-menu .auth-submenu a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* UOItalia Reborn 0.1.45 — empty fixed Joomla module positions.
   Approved frame assets and existing module styles are NOT changed. */
.welcome-row .cinema-showcase.uoi-empty-module-slot--slideshow {
  display: block;
  min-height: clamp(315px,27vw,420px);
}
.site > .home-gallery-module.uoi-empty-module-slot--home-gallery {
  min-height: 230px;
  border: 1px solid rgba(183,140,78,.45);
  background: rgba(5,19,32,.88);
}
.sidebar-column .uoi-empty-module-slot--sidebar-adventure {
  display: block;
  width: 100%;
  min-height: 455px;
  margin: 14px auto 20px;
  border: 1px solid rgba(183,140,78,.4);
  background: rgba(5,15,25,.55);
}
.auth-menu .uoi-empty-module-slot--side-menu { min-height: 130px; }
.uoi-cb-login .uoi-empty-module-slot--login { min-height: 218px; }

.site .footer-v86-grid .uoi-empty-module-slot--footer { min-height: 115px; }
@media (max-width: 620px) {
  .welcome-row .cinema-showcase.uoi-empty-module-slot--slideshow { min-height: 440px; }
  
}

/* Main-menu active submenu state: derived from the Joomla active trail. */

/* Preserve the selected-state indicator with the optional bronze accent. */

/* Optional plum-to-navy menu accent, enabled only by the menu item CSS class. */

/* UOItalia 0.1.50: Joomla's Link CSS Class is attached to the <a>.
   Styling is class-driven only; no menu titles, IDs or aliases are checked. */

/* ================ Navigazione principale — regole di base e breakpoint in ordine di cascata ================ */
:where(.navwrap) .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0c2236;
  border: 2px solid #b98d4e;
  box-shadow: 0 10px 25px #000c;
}
:where(.navwrap) .nav>div:focus-within .dropdown,:where(.navwrap) .nav>div:hover .dropdown {
  display: block;
}
:where(.navwrap) .dropdown a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid #3c5264;
}
:where(.navwrap) .dropdown a:hover {
  background: #214564;
}
.navwrap {
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  padding: 0 0 14px;
}
.navwrap .nav {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  background: url("../images/mainmenu-unified.svg") center center / 100% 100% no-repeat;
}
.navwrap .nav>div {
  box-sizing: border-box;
  display: flex !important;
  align-items: stretch;
}
.navwrap .nav>div+div::before {
  content: "";
  display: block !important;
  position: absolute;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg,transparent,#6191ae 18%,#a6c5d0 50%,#335c79 80%,transparent);
  box-shadow: 1px 0 0 #061323;
  pointer-events: none;
}
.navwrap .nav button {
  box-sizing: border-box;
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 !important;
  color: #f7eedb !important;
  font-family: Georgia,"Times New Roman",serif !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: background .18s ease,color .18s ease;
}
.navwrap .nav button:hover,.navwrap .nav button:focus-visible {
  outline-offset: -2px !important;
}
.navwrap .nav small {
  display: block !important;
  margin: 0 !important;
  font-family: Georgia,"Times New Roman",serif !important;
  letter-spacing: .02em !important;
  color: #f1e8d7 !important;
  text-shadow: 0 1px 2px #000;
}
.navwrap .nav .nav-caret {
  font-size: .70em !important;
  color: #e4c995 !important;
  margin-left: 4px !important;
}
.navwrap .nav .dropdown {
  background: linear-gradient(145deg,#163e5d,#081827);
  border: 1px solid #c29a59 !important;
  box-shadow: 0 14px 22px #000c;
}
.navwrap {
  padding-bottom: 10px;
}
.navwrap .nav {
  background-size: 100% 100%;
}
.navwrap .nav button {
  line-height: 1.08 !important;
  text-shadow: 0 1px 2px #000d;
}
.navwrap .nav small {
  line-height: 1.06 !important;
}
@media (min-width:851px) {
  .navwrap .nav>div>button {
      width: 100%;
      padding-left: clamp(9px,1.15vw,19px);
      padding-right: clamp(9px,1.15vw,19px);
    }
}
@media (min-width:851px) and (max-width:1150px) {
  .navwrap .nav>div>button {
      padding-left: 7px;
      padding-right: 7px;
    }
}
.navwrap .nav {
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 9px clamp(58px,6.7vw,105px);
  background-image: url("../images/mainmenu-unified.svg");
  background-color: transparent;
  height: 76px;
  min-height: 76px;
}
.navwrap .nav>div,
.navwrap .nav>div:nth-child(n) {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 42px;
  background: transparent;
  border: 0 !important;
  box-shadow: none;
}
.navwrap .nav>div+div::before {
  top: 9px;
  bottom: 9px;
  opacity: .70;
}
.navwrap .nav button,
.navwrap .nav button.active,
.navwrap .nav button:hover,
.navwrap .nav button:focus-visible {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 2px clamp(5px,.65vw,12px);
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: none;
  box-shadow: none;
  font-size: clamp(10px,.96vw,14px) !important;
  letter-spacing: 0 !important;
}
.navwrap .nav button.active {
  color: #ffe5ae !important;
}
.navwrap .nav button:hover,.navwrap .nav button:focus-visible {
  color: #ffdc8a !important;
  text-shadow: 0 0 7px #dfb76b,0 2px 2px #000;
}
.navwrap .nav small {
  font-size: clamp(7px,.63vw,9px) !important;
}
@media (min-width:851px) and (max-width:1250px) {
  .navwrap .nav {
      height: 65px;
      min-height: 65px;
      padding: 7px clamp(46px,6vw,76px);
    }
  .navwrap .nav button,.navwrap .nav button.active,.navwrap .nav button:hover {
      padding: 2px clamp(5px,.75vw,10px);
      font-size: clamp(9px,.92vw,12px) !important;
    }
  .navwrap .nav small {
      font-size: 7px !important;
    }
}
@media (max-width:850px) {
  .navwrap .nav button {
      font-size: 12px !important;
      padding: 4px 12px;
    }
}
.navwrap .nav, .navwrap .nav::before, .navwrap .nav::after {
  box-shadow: none;
  filter: none;
  border-radius: 0 !important;
}
.navwrap .nav::before,.navwrap .nav::after {
  content: none;
  display: none !important;
}
.navwrap .nav>div, .navwrap .nav>div>button {
  box-shadow: none;
  border-radius: 0 !important;
}
.navwrap .nav>div>button:hover,.navwrap .nav>div>button:focus-visible {
  background-color: transparent;
  background-image: none;
}
.site > .navwrap {
  isolation: visible;
}
.navwrap .nav {
  overflow: visible;
}
.navwrap .nav > div {
  position: relative;
  overflow: visible;
}
.navwrap .nav .dropdown {
  position: absolute;
  top: 100%;
  visibility: visible;
}
.site > .navwrap {
  position: relative;
  z-index: 1000;
  overflow: visible;
}
.navwrap .nav .dropdown {
  z-index: 1001;
}
.site > .navwrap {
  background: transparent;
  background-image: none;
  background-color: transparent;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none;
  filter: none;
}
.site > .navwrap::before,.site > .navwrap::after {
  content: none;
  display: none !important;
}
.site > .navwrap .nav {
  position: relative;
  z-index: 1;
}
.site > .navwrap .dropdown {
  z-index: 1001;
}
.site .navwrap .nav .uoi-menu-primary {
  color: inherit;
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}
.site .navwrap .nav .uoi-menu-initial {
  font-size: 1.18em;
  line-height: 1;
  vertical-align: baseline;
}
.site .navwrap .nav > div > button {
  text-transform: uppercase;
  font-weight: 400 !important;
}
.site .navwrap .nav .uoi-menu-secondary,
.site .navwrap .nav small {
  text-transform: none;
  font-weight: 400 !important;
  font-style: normal !important;
}
.navwrap .nav-mobile-toggle {
  display: none;
}
.site .navwrap .nav > div > button > .uoi-menu-primary{
    display: block !important;
    transform: none;
    width: auto;
    margin: 0 !important;
}
.site .navwrap .nav > div > button > .nav-caret{
    display: block !important;
    line-height: 1 !important;
    color: #e8bd75 !important;
}
@media (min-width:1101px) {
  .site .navwrap .nav > div > button {
      font-size: clamp(14px,1.12vw,17px) !important;
      letter-spacing: .018em !important;
      line-height: 1.06 !important;
      gap: 0;
      color: #f7e9ce !important;
      text-shadow: 0 1px 2px #000e;
      transition: color .15s ease,text-shadow .15s ease;
      transform: none;
      display: block !important;
      position: relative;
      width: 100%;
      max-width: 100%;
      padding-left: clamp(4px,.7vw,12px);
      padding-right: clamp(4px,.7vw,12px);
    }
  .site .navwrap .nav > div,
    .site .navwrap .nav > div:nth-child(n) {
      flex: 1 1 0;
      min-width: 0;
    }
  .site .navwrap .nav > div > button > .uoi-menu-primary {
      position: absolute;
      top: 5px;
      left: 5px;
      right: 5px;
      padding: 0;
      text-align: center;
      line-height: 1.1 !important;
      white-space: nowrap;
    }
  .site .navwrap .nav > div > button > .uoi-menu-secondary {
      display: block !important;
      position: absolute;
      top: 23px;
      left: 4px;
      right: 4px;
      margin: 0 !important;
      padding: 0;
      min-width: 0;
      max-width: none;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
      white-space: nowrap;
      line-height: 1.08 !important;
    }
  .site .navwrap .nav > div + div::before {
      width: 1px;
      top: 12px;
      bottom: 12px;
      opacity: .55;
      background: linear-gradient(180deg,transparent 0%,#b18c54 25%,#e0bf78 52%,#b18c54 75%,transparent 100%);
      box-shadow: none;
    }
  .site .navwrap .nav > div > button > .nav-caret {
      position: absolute;
      top: 34px;
      left: 0;
      right: 0;
      bottom: auto;
      flex: none;
      transform: none;
      margin: 0 !important;
      padding: 0;
      text-align: center;
      font-size: 10px !important;
      text-shadow: 0 1px 2px #000b;
    }
  .site .navwrap .nav > div > button:hover,
    .site .navwrap .nav > div > button:focus-visible,
    .site .navwrap .nav > div > button.active {
      background: transparent;
      transform: none;
      box-shadow: none;
    }
  .site .navwrap .nav > div.current > button,
    .site .navwrap .nav > div > button.active,
    .site .navwrap .nav > div.is-open > button {
      color: #f5ca79 !important;
      text-shadow: 0 0 5px #d7a55877,0 1px 2px #000;
    }
  .site .navwrap .nav > div > button:hover,
    .site .navwrap .nav > div > button:focus-visible {
      color: #ffe1a0 !important;
      text-shadow: 0 0 5px #d7a55866,0 1px 2px #000;
    }
  .site .navwrap .nav > div.current > button::after,
    .site .navwrap .nav > div > button.active::after {
      content: "";
      position: absolute;
      left: 28%;
      right: 28%;
      bottom: 1px;
      height: 2px;
      background: linear-gradient(90deg,transparent,#d6a75e 20%,#f9d98d 50%,#d6a75e 80%,transparent);
      box-shadow: 0 2px 5px #d6a75e70;
      pointer-events: none;
    }
  .site .navwrap .nav > div:hover:not(.is-open) > .dropdown,
    .site .navwrap .nav > div:focus-within:not(.is-open) > .dropdown {
      display: none !important;
    }
  .navwrap .nav small {
      font-size: clamp(10px,.75vw,12px) !important;
      line-height: 1.12 !important;
      letter-spacing: .012em !important;
      color: #d8c9b0 !important;
      text-shadow: 0 1px 2px #000c;
    }
  .navwrap .nav .dropdown a {
      font-size: 14px !important;
      line-height: 1.35 !important;
    }
  .navwrap .nav>div.is-open>.dropdown {
      display: block !important;
      visibility: visible;
    }
}
@media (min-width:1101px) and (max-width:1240px) {
  .site .navwrap .nav > div > button {
      font-size: clamp(12.5px,1.12vw,14px) !important;
      letter-spacing: 0 !important;
    }
  .navwrap .nav small,
  .site .navwrap .nav > div > button > .nav-caret {
      font-size: 9px !important;
    }
}
@media (max-width:1100px) {
  .navwrap {
      padding-bottom: 12px;
    }
  .navwrap .nav-mobile-toggle {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      gap: 14px;
      position: relative;
      z-index: 2;
      width: calc(100% - 52px);
      height: 58px;
      margin: 0 26px;
      padding: 7px 18px;
      border: 1px solid #c8a064;
      border-radius: 3px;
      color: #ffebbf;
      font: 700 16px Georgia,"Times New Roman",serif;
      letter-spacing: .035em;
      text-shadow: 0 1px 2px #000;
      background: linear-gradient(180deg,#26608a 0%,#15415f 45%,#071e34 100%);
      box-shadow: inset 0 1px 0 #72a3c3,0 4px 10px #0006;
      cursor: pointer;
    }
  .navwrap .nav-mobile-toggle:focus-visible {
      outline: 2px solid #ffe4a3;
      outline-offset: 2px;
    }
  .navwrap .nav-mobile-glyph {
      font: 700 25px Arial,sans-serif;
      line-height: 1;
      color: #e7bc73;
    }
  .navwrap .nav-mobile-label {
      flex: 1;
      text-align: left;
    }
  .navwrap .nav-mobile-state {
      font: 600 13px Georgia,serif;
      color: #f2d6a4;
    }
  .navwrap .nav {
      box-sizing: border-box;
      display: none !important;
      position: relative;
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      width: calc(100% - 52px);
      height: auto;
      min-height: 0;
      max-height: none;
      margin: 0 26px !important;
      padding: 5px 10px 8px;
      gap: 0;
      overflow: visible;
      border: 1px solid #bb8c4e !important;
      border-top: 0 !important;
      border-radius: 0 0 4px 4px !important;
      background: linear-gradient(180deg,#153b56 0%,#0a273f 55%,#081c2e 100%);
      box-shadow: 0 12px 22px #000b,inset 0 1px 0 #3c7394;
      scrollbar-width: thin;
    }
  .navwrap.mobile-open .nav {
      display: flex !important;
    }
  .navwrap.mobile-open .nav-mobile-toggle {
      border-radius: 3px 3px 0 0;
    }
  .navwrap .nav>div,.navwrap .nav>div:nth-child(n) {
      box-sizing: border-box;
      position: relative;
      flex: 0 0 auto;
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 48px;
      display: block !important;
      border: 0 !important;
    }
  .navwrap .nav>div+div::before {
      content: "";
      display: block !important;
      position: absolute;
      left: 6px;
      right: 6px;
      top: 0;
      bottom: auto;
      width: auto;
      height: 1px;
      background: linear-gradient(90deg,transparent,#7192a6 20%,#b7a178 50%,#7192a6 80%,transparent);
      box-shadow: none;
    }
  .site .navwrap .nav>div>button {
      box-sizing: border-box;
      display: flex !important;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: auto;
      min-height: 48px;
      margin: 0 !important;
      padding: 10px 13px;
      font-size: 16px !important;
      line-height: 1.25 !important;
      text-align: left;
      white-space: normal;
    }
  .site .navwrap .nav > div.current > button > .uoi-menu-primary,
    .site .navwrap .nav > div > button.active > .uoi-menu-primary {
      color: #f5ca79;
      text-shadow: 0 0 5px #d7a55877, 0 1px 2px #000;
    }
  .site .navwrap .nav > div.current > button::after,
    .site .navwrap .nav > div > button.active::after {
      content: "";
      position: absolute;
      top: 10px;
      bottom: 10px;
      left: 2px;
      width: 3px;
      border-radius: 1px;
      background: linear-gradient(180deg, #ad8249, #f9d98d, #ad8249);
      box-shadow: 0 0 5px #d6a75e70;
      pointer-events: none;
    }
  .site .navwrap .nav > div > button > .uoi-menu-primary {
      position: static;
      text-align: left;
    }
  .site .navwrap .nav > div > button > .nav-caret {
      position: static;
      margin-left: auto !important;
      font-size: 12px !important;
    }
  .navwrap .nav .dropdown {
      box-sizing: border-box;
      display: none !important;
      visibility: visible;
      position: static;
      left: auto;
      right: auto;
      top: auto;
      width: calc(100% - 18px);
      min-width: 0;
      margin: 0 9px 9px !important;
      padding: 5px 7px;
      border: 1px solid #99734b !important;
      border-radius: 2px !important;
      background: linear-gradient(180deg,#0b2940,#071b2d);
      box-shadow: inset 0 1px 0 #446982;
    }
  .navwrap .nav>div:hover>.dropdown:not(.nav-v105-force) {
      display: none !important;
    }
  .navwrap .nav>div.is-open>.dropdown,
    .navwrap .nav>div.is-open:hover>.dropdown {
      display: block !important;
      visibility: visible;
    }
  .navwrap .nav .dropdown a {
      box-sizing: border-box;
      display: block !important;
      width: 100%;
      min-height: 38px;
      padding: 9px 13px;
      font-size: 14px !important;
      line-height: 1.3 !important;
      color: #f5e5c8 !important;
    }
  .navwrap .nav .dropdown a:hover,
    .navwrap .nav .dropdown a:focus-visible {
      background: #305778;
      color: #fff7dc !important;
    }
}
@media (max-width:430px) {
  .navwrap .nav-mobile-toggle {
      font-size: 14px;
      gap: 10px;
      padding: 7px 13px;
    }
  .navwrap .nav-mobile-state {
      font-size: 12px;
    }
}
:where(.navwrap) .nav .dropdown a small {
  display: block;
  font-size: 11px;
  opacity: .8;
  line-height: 1.2;
}
.site .navwrap .nav.uoi-empty-module-slot--main-menu {
  display: block !important;
  min-height: 65px !important;
}
.site .navwrap .nav .dropdown a.uoi-submenu-active,
.site .navwrap .nav .dropdown a.uoi-submenu-active:hover,
.site .navwrap .nav .dropdown a.uoi-submenu-active:focus-visible {
  color: #fff2c8 !important;
  background: linear-gradient(90deg,#345d78 0%,#1a3f5d 88%);
  box-shadow: inset 3px 0 0 #e6be72, inset 0 0 0 1px rgba(228,189,113,.32);
  text-shadow: 0 1px 1px rgba(0,0,0,.7);
}
.site .navwrap .nav .dropdown a.uoi-menu-featured:not(.uoi-submenu-active) {
  color: #fce9b1 !important;
  background: linear-gradient(90deg,rgba(108,68,24,.75),rgba(40,43,47,.4));
  border-left: 3px solid #ce9f50 !important;
  padding-left: 10px;
  font-weight: 600 !important;
}
.site .navwrap .nav .dropdown a.uoi-menu-featured:not(.uoi-submenu-active):hover,
.site .navwrap .nav .dropdown a.uoi-menu-featured:not(.uoi-submenu-active):focus-visible {
  background: linear-gradient(90deg,#88602b,#274861);
  color: #fff8d5 !important;
}
.site .navwrap .nav .dropdown a.uoi-menu-featured.uoi-submenu-active {
  border-left: 3px solid #e6be72 !important;
  padding-left: 10px;
}
.site .navwrap .nav .dropdown a.uoi-menu-status-newbie,
.site .navwrap .nav .dropdown a.uoi-menu-status-newbie:not(.uoi-submenu-active) {
  color: #f5e7fc !important;
  background: linear-gradient(100deg, #63436f 0%, #352d56 57%, #183b52 100%);
  border-left: 3px solid #d9b7ee !important;
  padding-left: 10px;
  font-weight: 600 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.64);
}
.site .navwrap .nav .dropdown a.uoi-menu-status-newbie:hover,
.site .navwrap .nav .dropdown a.uoi-menu-status-newbie:focus-visible {
  background: linear-gradient(100deg, #785487, #393e72 60%, #20546a);
  color: #fff7ff !important;
}
.site .navwrap .nav .dropdown a.uoi-menu-status-newbie.uoi-submenu-active {
  box-shadow: inset 3px 0 0 #f0d6ff, inset 0 0 0 1px rgba(234,202,255,.42);
  border-left-color: #f0d6ff !important;
}
.site #main-navigation .dropdown > a.uoi-menu-featured {
  color:#fce9b1 !important;
  background:linear-gradient(90deg,rgba(108,68,24,.75),rgba(40,43,47,.4)) !important;
  border-left:3px solid #ce9f50 !important;
  padding-left:10px !important;
  font-weight:600 !important;
}
.site #main-navigation .dropdown > a.uoi-menu-status-newbie {
  color:#f5e7fc !important;
  background:linear-gradient(100deg,#63436f 0%,#352d56 57%,#183b52 100%) !important;
  border-left:3px solid #d9b7ee !important;
  padding-left:10px !important;
  font-weight:600 !important;
}
.site #main-navigation .dropdown > a.uoi-menu-featured:hover,
.site #main-navigation .dropdown > a.uoi-menu-featured:focus-visible {
  background:linear-gradient(90deg,#88602b,#274861) !important;
}
.site #main-navigation .dropdown > a.uoi-menu-status-newbie:hover,
.site #main-navigation .dropdown > a.uoi-menu-status-newbie:focus-visible {
  background:linear-gradient(100deg,#785487,#393e72 60%,#20546a) !important;
}

/* Cursore standard di Ultima Online su tutto il sito */
html, body {
    cursor: url('/uo.cur'), auto !important;
}

/* Cursore sui link, menu, pulsanti ed elementi cliccabili */
a, a *, button, input[type="submit"], input[type="button"], select, label[for], [role="button"], .btn {
    cursor: url('/uo3.cur'), pointer !important;
}

/* Cursore al click attivo (sostituzione per uo2.ani non supportato dai browser moderni) */
a:active, button:active, input[type="submit"]:active {
    cursor: url('/uo3.cur'), pointer !important;
}
