/* ==========================================================================
   Template giudansky - foglio di stile principale
   Caricato dopo Bootstrap (asset del core "bootstrap.css") e Font Awesome (asset "fontawesome").
   Ex layout.css + specific.css + style.css del template "mio", uniti nello stesso ordine.
   ========================================================================== */

/* ==========================================================================
   1. STRUTTURA (ex layout.css)
   ========================================================================== */

/* layout.ccs: joomla basic styles */
/* specific joomla code */

h1.heading {
  text-align: center;
}

#side {
  min-width: 300px;
}
/* ---------------------------------------------- article details */
.article-info {
  font-size: 0.7em;
  display: flex;
  -webkit-box-flex: 1;
  flex: 1 0 10em;
  flex-wrap: wrap;
  text-transform: uppercase;
  gap: 0.5em;
}
.article-info > * {
  margin: 0;
  flex-grow: 0;
  flex-shrink: 1;
  box-sizing: border-box;
  align-self: center;
}

.article-info > div {
  margin: 0 5px;
  display: inline;
}

.content_rating {
  margin-top: 5px;
  color: #666;
}

.article-info-term {
  display: none;
}

.category-desc {
  color: #666;
  font-size: 1.1em;
  position: relative;
}

.cat-children {
  width: 100%;
  float: left;
}

div.cat-children div.category-desc {
  background: none;
  padding: 0;
}

div.cat-children ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

div.cat-children ul li {
  float: left;
  padding: 5px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  margin: 5px;
}

ul.relateditems {
  padding: 10px 0;
  list-style-position: inside !important;
  margin: 0 !important;
}

ul.relateditems li {
  padding: 0 5px;
  font-size: 0.8em;
  line-height: 1.2em;
  border-right: solid #ccc 1px;
  font-stretch: ultra-condensed;
  list-style: none;
  display: inline-block;
}

ul.relateditems li h4 {
  font-weight: normal;
  margin: 0;
}

/* -------------------- article details END */

/* -------------------- TAGS BLOCK */
.tags li {
  list-style: none;
  display: inline;
}
.tags .label-info {
  background: var(--color1l);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.6em;
  color: #fff;
  text-shadow: none !important;
  filter: none !important;
  font-weight: normal !important;
  padding: 5px;
  margin-right: 5px;
}

.com-tags-tag li {
  padding: 0 !important;
  display: inline;
}

.com-tags-tag {
  margin-bottom: 10px;
  list-style: none !important;
  background: none !important;
  padding: 0 !important;
}

/* -------------------- tags component END */
/* -------------------- tags module popular */
.tagspopular ul,
.tagssimilar ul {
  padding: 5px;
}

.tagspopular li,
.tagssimilar ul li {
  list-style: none;
  float: left;
  background: #666;
  color: #fff;
  font-size: 0.9em;
  font-style: italic;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 2px;
}

.tagspopular li:hover,
.tagssimilar ul li:hover {
  background: #333;
}

.tagspopular li a,
.tagssimilar li a {
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
}

/* -------------------- tags module popular END */
/* -------------------- rssfeed module */
.newsfeed {
  list-style: none;
}

/* -------------------- rssfeed module END */
/* -------------------- module category, modeule latest news  */
ul.category,
ul.categories-module,
ul.category-module,
ul.latestnews,
ul.archive-module,
ul.menu {
  list-style: none outside none !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.category ul,
ul.categories-module ul,
ul.category-module ul,
ul.latestnews ul,
ul.archive-module ul,
ul.menu ul {
  list-style: none outside none !important;
}

ul.category li,
ul.categories-module li,
ul.category-module li,
ul.latestnews li,
ul.archive-module li,
ul.menu li {
  margin-bottom: 1px;
  border: none;
}

ul.categories-module li a,
ul.category-module li a,
ul.latestnews li a,
ul.archive-module li a {
  background-color: inherit;
  display: block;
  font-size: 1.1em;
  line-height: 2em;
  padding: 0 10px;
  text-decoration: none;
}

ul.category li ul a,
ul.categories-module li ul a,
ul.category-module li ul a,
ul.latestnews li ul a,
ul.archive-module li ul a,
ul.menu li ul a {
  font-size: 0.9em;
  padding: 0 30px;
}

ul.category li a:hover,
ul.categories-module li a:hover,
ul.category-module li a:hover,
ul.latestnews li a:hover,
ul.archive-module li a:hover,
ul.menu li a:hover {
  /*background-color: rgba(255, 255, 255, 0.7);*/
}

/* -------------------- module menu sidebar END */
/* -------------------- module menu sidebar  */
.latestnews li {
  list-style: none;
}

/* -------------------- module menu sidebar END  */

/* -------------------- filtro di ricerca nell'archivio categorie */
.filter-search {
  float: left;
  clear: both;
  background: #ccc !important;
  border: none !important;
}

.filter-search #month,
.filter-search #year,
.filter-search #limit {
  width: 100px;
}

/* -------------------- filtro di ricerca nell'archivio categorie END*/
/* -------------------- contacts */
.panel {
  background: #fff;
  margin: 5px;
  border-radius: 10px;
  padding: 10px;
}

.panel h3 {
}

/* ---------------------------------------------- contacts END */
/* ---------------------------------------------- module weblinks */
.weblinks li a {
  font-weight: bold;
}

.weblinks li p {
  font-size: 0.8em;
  font-style: italic;
}

/* ---------------------------------------------- MODULE WEBLINKS END */
/* ---------------------------------------------- PAGINATION AND PAGER  */
.counter {
  text-align: center;
}

div.pagination ul,
ul.pager {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  list-style: none;
  margin-top: 5vh;
  clear: both;
  width: 100%;
  float: left;
}

div.pagination ul li,
ul.pager li {
  display: block;
  margin-right: 1px;
  position: relative;
  color: #fff;
}

div.pagination ul li.disabled  {
  background: var(--color1l);
}

div.pagination ul li a,
div.pagination ul li > span,
ul.pager li a,
div.pagination ul li > * {
  display: block;
  border-radius: 0;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 10px;
  color:#fff;
}

div.pagination ul li a:hover,
ul.pager li a:hover {
  background: #dfdfdf;
}

div.pagination ul li.disabled a:hover {
  background: #ccc;
}

div.pagination ul li:last-child {
  margin-right: 0;
}

/* ---------------------------------------------- PAGINATION END */

/* ---------------------------------------------- home layout  */
body.home #container,
body.view-category.layout-giudanskymasonry #container {
  max-width: 100%;
}

/* ---------------------------------------------- home  layout  END */
/* ---------------------------------------------- BLOG layout  */

figure img {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------- Image caption in blog and article END */

/* ---------------------------------------------- Breadcrumb */
.breadcrumb {
  list-style: none;
  padding: 0 10px;
  margin: 0 !important;
  background: none;
}

.breadcrumb li {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

.breadcrumb .divider {
  padding: 0 5px;
  font-family: "IcoMoon";
  font-style: normal;
}

/* ---------------------------------------------- search page END */

/* ------------------------------------------- social links END */

/* ------------------------------------------- OFFLINE */
body.offline {
  text-align: center;
}

body.offline #container {
  box-sizing: border-box;
  padding: 5vw;
  width: 70%;
  zoom: 100%;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.6);
}

body.offline #logo {
  width: 20vw;
  margin: 0 auto;
}

/* ------------------------------------------- OFFLINE END*/
/* ------------------------------------------- TABLE */
table {
  width: 100%;
  border: 0;
  box-sizing: border-box;
}

table td {
  padding: 5px;
  margin: 0;
  vertical-align: bottom;
  border-bottom: 1px #fff dotted;
  text-align: center;
}

table th {
  color: #fff;
  padding: 10px;
  border-right: 1px #fff dotted;
}

table th a {
  color: #fff !important;
}

table td:first-child {
  text-align: left;
}

​ table tr:nth-child(even) {
  background-color: none;
}

table tr:nth-child(odd) {
  background-color: rgba(256, 256, 256, 0.4);
}

/* evidenziazione celle */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.list-group {
  --list-group-color: var(--body-color);
  --list-group-bg: var(--body-bg);
  --list-group-border-color: var(--border-color);
  --list-group-border-width: var(--border-width);
  --list-group-border-radius: var(--border-radius);
  --list-group-item-padding-x: 1rem;
  --list-group-item-padding-y: .5rem;
  --list-group-action-color: var(--secondary-color);
  --list-group-action-hover-color: var(--emphasis-color);
  --list-group-action-hover-bg: var(--tertiary-bg);
  --list-group-action-active-color: var(--body-color);
  --list-group-action-active-bg: var(--secondary-bg);
  --list-group-disabled-color: var(--secondary-color);
  --list-group-disabled-bg: var(--body-bg);
  --list-group-active-color: #fff;
  --list-group-active-bg: #010156;
  --list-group-active-border-color: #010156;
  border-radius: var(--list-group-border-radius);
  flex-direction: column;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
}

.list-group-item-action {
  color: var(--list-group-action-color);
  text-align: inherit;
  width: 100%;
}

.list-group-item-action:hover, .list-group-item-action:focus {
  z-index: 1;
  color: var(--list-group-action-hover-color);
  background-color: var(--list-group-action-hover-bg);
  text-decoration: none;
}

.list-group-item-action:active {
  color: var(--list-group-action-active-color);
  background-color: var(--list-group-action-active-bg);
}

.list-group-item {
  padding: var(--list-group-item-padding-y) var(--list-group-item-padding-x);
  color: var(--list-group-color);
  background-color: var(--list-group-bg);
  border: var(--list-group-border-width) solid var(--list-group-border-color);
  text-decoration: none;
  display: block;
  position: relative;
}

.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.list-group-item.disabled, .list-group-item:disabled {
  color: var(--list-group-disabled-color);
  pointer-events: none;
  background-color: var(--list-group-disabled-bg);
}

.list-group-item.active {
  z-index: 2;
  color: var(--list-group-active-color);
  background-color: var(--list-group-active-bg);
  border-color: var(--list-group-active-border-color);
}

.list-group-item + .list-group-item {
  border-top-width: 0;
}

.list-group-item + .list-group-item.active {
  margin-top: calc(-1 * var(--list-group-border-width));
  border-top-width: var(--list-group-border-width);
}


/* ==========================================================================

   2. TEMA: colori, galleria masonry, social (ex specific.css)

   ========================================================================== */


/* specific.css: templates override and alternative layouts */
/* ------------------------------------------------	theme colors */
a:link,
a:visited {
  color: var(--color1);
  text-decoration: none;
}
a.btn {
  color: #fff !important;
}
a:hover,
a:active {
  text-decoration: underline;
}

/* ------------------------------------------------	theme colors  */

.button,
div.pagination ul li a,
ul.pager li a {
  background: var(--color1);
  border-color: var(--color1);
}
.page-item.hover .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--color1);
  border-color: var(--color1);
}
.button:hover,
div.pagination ul li a:hover {
  background: #4fc6ff;
  border-color: #4fc6ff;
}

/* background */
table th {
  background: var(--color1);
}

/* color */

/* ------------------------------------------- masonry blog menu item type */

/*  quad sizes config */
.quad {
  grid-template-columns: 1fr;
  grid-auto-rows: calc(400px - 18px);
  display: grid;
  grid-auto-flow: dense;
  grid-gap: 5px;
}

@media only screen and (min-width: 768px) {
  .quad {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc(300px - 18px);
  }
}

@media only screen and (min-width: 992px) {
  .quad {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (min-width: 1200px) {
  .quad {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media only screen and (min-width: 1480px) {
  .quad {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media only screen and (min-width: 768px) {
  .quad > :nth-child(4n + 1) {
    grid-column: span 2;
    grid-row: span 2; /* Ogni primo elemento di un gruppo di 4 */
  }
  .quad > :nth-child(1) {
    grid-column: span 3;
    grid-row: span 2; /* Ogni primo elemento di un gruppo di 4 */
  }
  .quad > :nth-child(4n + 2) {
    grid-column: span 2;
    grid-row: span 1; /* Ogni secondo elemento di un gruppo di 4 */
  }

  .quad > :nth-child(4n + 3) {
    grid-column: span 1;
    grid-row: span 2; /* Ogni terzo elemento di un gruppo di 4 */
  }

  .quad > :nth-child(4n + 4) {
    grid-column: span 1;
    grid-row: span 1; /* Ogni quarto elemento di un gruppo di 4 */
  }
}
.quad .heading {
  grid-row: span 1 !important;
}
.quad .quad-box {
  overflow: hidden;
  cursor: pointer;
  font-size: 0.9em;
  height: 100%;
  position: relative;
  border-radius: 20px;
  transform: scale(1);
  transition: transform 2s ease, opacity 0.5s ease; /* Anima sia scala che opacità */
}
.quad .quad-box.hover {
  transform: scale(0.9);
}

.quad .quad-box div.category {
  font-weight: bold;
}

.quad .quad-box .content1 {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.item-embed-code, .item-embed-code div[id^="dan-gltfview-"], .threed-container {
  height: 100%;
}
.item-embed-code div div *:not(.sceneCanvas) {
  display: none !important;
}

.item-embed-code .sceneCanvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.quad .quad-box::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: inset 0 0 30px 10px #00000040;
  /* mix-blend-mode: plus-lighter; */
  z-index: 9;
  transition: opacity 0.5s ease;
}
.quad-box.hover::after {
  /* il tuo stile quando è attivo */
  opacity: 0 !important;
}
@media only screen and (max-width: 992px) {
  .quad-box.active::after {
    /* il tuo stile quando è attivo */
    opacity: 0 !important;
  }
}

.quad .quad-box .content1::before {
  content: "";
  width: 100%;
  height: 50%;
  position: absolute;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#dc911b+0,000000+100&1+0,0+100 */
  background: linear-gradient(
    to bottom,
    rgba(220, 145, 27, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  mix-blend-mode: color;
  opacity: 0.5;
  z-index: 9;
}
.quad-box a::after {
  /* il tuo stile normale */
  transition: opacity 1s;
  opacity: 1;
}
.quad .quad-box .content2 {
  position: absolute;
  height: auto;
  bottom: 0;
  left: 0;
  z-index: 9;
  background: #fff;
  opacity: 0;
  transform: translateY(50px); /* Partenza dal basso */
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease; /* Aggiunta della transizione di transform */
}

.quad .quad-box.hover .content2 {
  opacity: 0.7;
  transform: translateY(0); /* Arrivo alla posizione originale */
}
@media only screen and (max-width: 992px) {
  .quad .quad-box.active .content2 {
    opacity: 0.7;
    transform: translateY(0); /* Arrivo alla posizione originale */
  }
}
.quad .quad-box .caption {
  color: #fff;
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 5px;
  display: block;
}

.quad .quad-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 4s ease, opacity 0.5s ease; /* Anima sia scala che opacità */
}
.quad .quad-box.hover img {
  transform: scale(1.2);
}
@media only screen and (max-width: 992px) {
  .quad .quad-box.active img {
    transform: scale(1.2);
  }
}
.quad .quad-box .content1 .category {
  width: auto;
  left: 5px;
  top: 0;
  position: absolute;
  background: #fff;
  border-radius: 0 0 5px 5px;
  padding: 0 5%;
  z-index: 12;
  color: var(--color1);
}

.quad .quad-box .content1 .category h5 {
  line-height: 1.5em !important;
  margin: 0 !important;
  font-size: 0.9em;
}

.quad .bar {
  position: absolute;
  top: 10%;
  left: 0;
  z-index: 10;
  background: #ffffff70;
}

.quad .bar h2 {
  display: block;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0;
}

.quad h2 a {
  color: #000;
  text-transform: none;
  transform: translateZ(0px);
  transition-duration: 0.3s;
  transition-property: color;
  text-decoration: none;
  /*  text-shadow: 0 0 20px #fff; */
}

.quad .content1 h2 {
  color: #fff;
}

.content2 a {
  text-decoration: none;
  color: #000;
}

.quad h3 {
  font-size: 1.3em;
  color: #000;
}

/* ------------------------------------------------------- masonry blog END */

/* ------------------------------------------- gallery article layout */
.article.gallery figure img {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
  max-width: 800px;
  display: block;
}

.article.gallery .articletitle,
.article.gallery .caption {
  text-align: center;
}

.article.gallery .caption {
  font-style: italic;
  font-size: 0.9em;
}

/* wall-box override END */
/* menu override */
ul.css3menu #item-101 {
  vertical-align: middle;
}

ul.css3menu .home span {
  display: none;
}

nav#menu ul li .home img {
  width: 7vw;
}

/* sigpro override END */

/* override to google widget */
#widget_bounds {
  border: none !important;
  border: 0 !important;
}

/* override to google widget END */

/* ------------------------------------------------------- OVERRIDES END  */
/* ------------------------------------------------------- COOKIE CHOICES */

#cookieChoiceInfo {
  box-sizing: border-box !important;
  padding: 20px 10px !important;
  top: inherit !important;
  bottom: 0;
}

#cookieChoiceInfo span {
  display: block;
  margin-bottom: 5px;
}

#cookieChoiceInfo .button {
  display: inline;
}

/* ------------------------------------------------------- COOKIE CHOICES END */

/* ------------------------------------------------------- SOCIAL MODULE LINKS */

#social {
  color: #fff;
  position: relative;
}

#social a {
  color: #fff;
  text-decoration: underline;
}

#social ul {
  list-style: none;
  list-style-position: inside;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

#social ul li {
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  flex: 1 1 70px;
}

#social svg {
  width: 100%;
  height: auto;
  max-width: 70px;
  fill: #ccc;
}

#social svg:hover {
  fill: #fff;
}

/* ------------------------------------------------------- SOCIAL MODULE LINKS END */

#twitter-widget-0 {
  width: 100%;
}

div.mod-languages ul li.lang-active {
  background-color: #fff;
}

/* ==========================================================================

   3. STILE: tipografia, menu, moduli, campi, pulsanti, parti per utenti connessi (ex style.css)

   ========================================================================== */



:root {
  --color1: #dc911b;
  --color1l: #dc911b50;
  --color2: #b92028;
  --color2l: #b9202850;
  /* font: sovrascritti da index.php con quelli dello stile del template (scheda Aspetto) */
  --gd-font-headings: "Roboto";
  --gd-font-body: "Roboto";
  --choices-primary-color: var(--color1);
  --choices-highlight-color: var(--color1);
}

img {
  height: auto;
}
/* ------------------------------------------------ typo */
h1,
h2,
h3 {
  font-family: var(--gd-font-headings), sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
  margin: 0 0 0.3em 0;
  letter-spacing: -0.03em;
  font-weight: bold !important;
}

h1 {
  font-size: 3em;
}

h3 {
  font-size: 1.5em;
}

h2 {
  line-height: 1em;
  margin: 0 0 10px 0;
  font-size: 2.2em;
}

h1 a,
h2 a,
h3 a {
  text-decoration: none;
}


#footer a {
  color: #fff;
}

@media screen and (min-width: 800px) {
  #menu-icon {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .item {
    width: 100% !important;
  }

  #pathway {
    left: 0;
  }
}

/* ------------------------------------------------ typo END */

/* ------------------------------------------- structure */
body {
  font-family: var(--gd-font-body), sans-serif;
  font-size: 1em;
}

#top {
  width: 100%;
  height: 30px;
  position: relative;
  margin: 0 auto;
}

#header {
  margin: 0 0 5px 0;
  position: relative;
  overflow: hidden;
}

#header #social {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 999;
}

.headline {
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 2.5em;
  font-weight: normal;
}

#logo {
  width: 100%;
  height: 200px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}

#logo a {
  text-align: center;
  margin: 0 auto;
  width: 30%;
  max-width: 450px;
  min-width: 200px;
  position: relative;
  padding-top: 40px;
  display: block;
}

#logo img {
  width: 100%;
  height: auto;
}

#pathway {
  font-style: italic;
  font-size: 0.9em;
  top: 100px;
  left: 70px;
  z-index: 9;
  color: rgba(106, 106, 106, 0.6);
  padding: 10px;
}

#pathway .breadcrumb li {
  text-shadow: none;
}

#pathway a,
#pathway .breadcrumb > .active {
  text-decoration: none;
  color: var(--color1);
}

#pathway .icon-location:before {
  content: "c";
}

/* ------------------------------------------- NAVMENU STYLE */
nav#menu #logo {
  width: 20vw;
}

nav#menu #logo svg {
  color: #fff;
}

nav#menu #logo img {
  width: 100%;
  height: auto;
}

nav#menu #logo a {
  padding: 10px;
  display: block;
  width: 13vw;
  height: auto;
  transition: all 0.3s ease;
  margin-left: 5vw;
  position: absolute;
  top: 0;
  left: 0;
}

#topbar.sticky nav#menu #logo a {
  width: 10vw !important;
  height: auto !important;
}

nav#menu {
  padding-top: 30px;
  margin: 0;
  width: 100%;
  transition: all 0.3s ease;
  background: #fff;
  width: 100%;

  align-items: center;
  max-height: 20vh;
  margin-bottom: 5px;
}

nav#menu a {
  color: #333;
}

.retino::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: -1;
}

nav#menu > div.menu {
  /*flex-grow: 0; */
}

nav ul.menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  align-items: center;
}

nav ul.menu ul {
  display: none;
  flex-direction: column;
  z-index: 999;
  background: #ccc;
  font-size: 0.9em;
}

/* --------------------------------------- menu mobile */
@media only screen and (max-width: 992px) {
  nav#menu {
    position: fixed;
    width: 50% !important;
    height: 100%;
    max-height: 100%;
    top: 0;
    left: -50%;
    z-index: 9999;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
  }

  nav#menu.open {
    width: 50%;
    height: 100%;
    top: 0;
    left: 0 !important;
  }

  nav#menu ul ul {
    position: relative;
    float: left;
    width: 100%;
    background: none;
    text-align: left !important;
  }

  nav#menu ul li {
    width: 100%;
  }

  nav#menu ul li a {
    width: 100%;
    padding: 0 10px 0 15%;
    text-align: left;
  }

  nav#menu ul li ul li a {
    padding: 0 10px 0 25%;
  }

  nav#menu ul li > a {
    line-height: 2em;
  }

  nav#menu ul li > a.home {
    padding: 0 10px;
  }

  nav#menu ul .current ul {
    display: block !important;
  }

  nav#menu ul.nav img,
  nav#menu ul.nav svg {
    width: 100% !important;
  }

  nav {
    padding: 20px;
  }

  nav ul.menu li {
    border-bottom: solid rgba(255, 255, 255, 0.3) 2px;
  }
  nav#menu.mobile #logo {
    width: 100% !important;
  }

  nav#menu.mobile #logo a {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    position: inherit;
  }
}
/* --------------------------------------- menu mobile END  */

ul.nav.menu,
ul.nav.menu ul {
  margin: 0 auto;
  list-style: none;
}

ul.nav.menu ul {
  display: none;
  position: absolute;
  z-index: 999;
  left: -1px;
  top: 98%;
  padding: 3vh 0 5px 0;
  background: #fff;
}

ul.nav.menu ul ul ul {
  position: absolute;
  left: 98%;
  top: -2px;
}

ul.nav.menu li {
  white-space: nowrap;
  position: relative;
  border-radius: 0;
  padding: 5px 0;
}

#foot ul.nav.menu li {
  width: 100%;
  border-bottom: dotted #868686 1px;
}

ul.nav.menu li a {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: normal;
  transition-duration: 0.3s;
  transition-property: color, background-color;
  letter-spacing: 0.05em;
  line-height: 3em;
  padding: 0 1vw;
  border-bottom: solid rgba(255, 255, 255, 0) 2px;
  transition: all 0.3s ease;
  border-radius: 0 !important;
  color: var(--color1) !important;
  opacity: 0.9;
}

ul.nav.menu li > a:hover,
ul.nav.menu li.active > a {
  color: var(--color1) !important;
  background: rgba(255, 255, 255, 0.5);
  font-weight: bold;
}

ul.nav.menu li > a.home:hover,
ul.nav.menu li.active > a.home {
  background: none;
}

.modulo ul.nav.menu li:hover a,
.modulo ul.nav.menu li.active a {
  background: rgba(200, 200, 200, 0.2);
}

ul.nav.menu ul li a {
  text-align: left;
  text-decoration: none;
  text-transform: lowercase;
  padding: 3px 20px;
  color: var(--color1) !important;
  line-height: 2em;
}

ul.nav.menu li:hover > a img.def {
  display: none;
}

ul.nav.menu li:hover > a img.over {
  display: inline;
}

ul.nav.menu span {
  text-indent: -99999px;
  position: absolute;
}

ul.nav.menu ul li:hover > a {
  text-decoration: none;
  color: #fff;
}

ul.nav.menu a.active {
  color: #fff !important;
  background: none !important;
  border-bottom: solid rgba(200, 200, 200, 0.5) 2px;
}

ul.nav.menu ul li.deeper {
  /*background: url(../images/arr-down.png) no-repeat 3px center;*/
  padding-left: 10px;
}

ul.nav ul li ul li.deeper {
  /*background: url(../images/arr-right.png) no-repeat 3px center;*/
  padding-left: 0;
}

ul.nav.menu img,
ul.nav svg {
  margin: 0;
  width: 20vh;
  height: auto;
  max-height: 8vh;
  transition-duration: 0.6s;
}

/* --------------------------------- menu sticky (see .js) */
@media only screen and (min-width: 992px) {
  .quad-box.active::after {
    /* il tuo stile quando è attivo */
    opacity: 0 !important;
  }
  nav#menu.sticky {
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 0 30px 10px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav#menu.sticky a {
    font-size: 0.9em;
  }

  nav#menu.sticky svg.logo {
    width: 15vh;
  }
}

/* --------------------------------- menu sticky (see .js) END */

/*  MENU ICON MOBILE */
nav #menu-sandwich {
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 2;
  background: #333;
  transform: scale(0.7);
}

nav #menu-sandwich span,
#menu-sandwich:after,
#menu-sandwich:before {
  background: #fff;
  content: "";
  display: block;
  width: 60px;
  height: 10px;
  position: absolute;
  left: 10px;
  transition: none 0.5s ease 0.5s;
  transition-property: transform, top, bottom, left, opacity;
}

nav #menu-sandwich:before {
  top: 15px;
}

nav #menu-sandwich span {
  top: 35px;
}

nav #menu-sandwich:after {
  top: 55px;
}

/*menu sandwich animation */
nav.open #menu-sandwich:after,
nav.open #menu-sandwich:before {
  top: 35px;
}

nav.open #menu-sandwich span {
  left: -50px;
  opacity: 0;
}

nav.open #menu-sandwich:before {
  transform: rotate(45deg);
}

nav.open #menu-sandwich:after {
  transform: rotate(-45deg);
}

/*menu sandwich animation END */

@media (min-width: 993px) {
  #menu-sandwich {
    display: none;
  }

  #navigation.sticky {
    border-top: 0 none;
    bottom: inherit;
    left: 0;
    width: 100% !important;
    position: fixed;
    top: 0;
    z-index: 9999;
    display: block;
  }
}

/* ------------------------------------------- NAVMENU STYLE END */

#head {
  width: 100%;
  float: left;
  margin: 0 0 5px 0;
  padding: 0;
  border-radius: 10px;
}

#main {
  background: #fff;
}

#banner {
  width: 100%;
  float: left;
  margin: 0 0 5px 0;
  position: relative;
}

#bottom {
  width: 100%;
  margin: 5px 0 0 0;
  float: left;
  position: relative;
  box-sizing: border-box;
  padding: 10px;
}

#foot h3,
#foot h4,
#foot h4 a {
  color: #fff !important;
}

#foot {
  background: #666;
  float: left;
  width: 100%;
  padding: 20px 10px 10px 10px;
  display: flex;
  flex-wrap: wrap;
}

#foot > * {
  width: 33.3%;
  min-height: 100px;
  float: left;
  color: #ccc;
  flex: 1 1 20em;
}

#foot a {
  color: #ccc;
  display: block;
}

#foot a:hover {
  color: #fff;
}

#foot ul li {
  padding-left: 10px;
  list-style: none;
}

#foot ul li a {
  text-decoration: none;
  line-height: 2em;
}

#footer {
  height: auto;
  width: 100%;
  margin: 0 auto;
  background: #2d2d2d;
  color: #ccc;
  float: left;
  z-index: 999;
  padding: 20px;
  text-align: center;
}

#footer .pad {
  padding: 10px;
}

.item-head {
  height: 400px;
  background-attachment: fixed;
  background-color: #666 !important;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
}

/* ------------------------------------------- structure END */

/* ------------------------------------------- modules  */
.modulo {
  margin: 0;
  padding: 10px;
  position: relative;
}

.modulo.black {
  background: #333;
  color: #ccc;
}

.modulo.nopad {
  padding: 0;
  background: none;
}

.modulo.transparent {
  background: none;
}

/* ------------------------------------------- bottoni END */

/* ----------------------------------- dan custom banner */
a .caption {
  color: #fff !important;
}

/* ----------------------------------- module paddings */
.feed {
  font-size: 0.9em;
}

/* ------------------------------------------- user interface */

.fa_icons {
  color: #fff;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(125, 125, 125, 0.5);
  box-shadow: 0 7px 34px rgba(0, 0, 0, 0.43);
  cursor: pointer;
}

.fa_icons:hover {
  color: rgba(255, 255, 255, 0.8);
}

/*  scroll top button */
#back-to-top {
  font-size: 4em;
  position: fixed;
  bottom: 0;
  right: 0;
  color: #fff;
  color: rgba(255, 255, 255, 0.5);
  z-index: 999;
}

/* ------------------------------------------- user interface END */
/* ------------------------------------------- forms */

fieldset {
  background: #fff;
  color: #333;
  border: none;
  padding: 10px;
}

.form {
  position: relative;
}

:where(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=color], [type=hidden], [type=submit], [type=button], [type=reset], [type=image]), textarea, select) {
  /*border: solid #ccc 1px;*/
  margin: 0;
  padding: 8px 15px;
  border: solid #ccc 1px;
  background: #ebebeb;
  background: linear-gradient(
    to bottom,
    #ebebeb 0%,
    #ebebeb 0%,
    #fcfcfc 21%,
    #fcfcfc 100%
  );
  box-sizing: border-box;
  height: auto;
  border-radius: 0;
}

.form-control {
  padding: 8px 15px;
  border-radius: 0;
  background-color: #fff;
}

.form-select {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 15px;
  border-radius: 0;
}

.form-control:focus,
.form-select:focus,
:where(input, textarea, select):focus {
  border: solid #55aaff 1px;
}

.button,
.btn {
  display: inline-block;
  position: relative;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  color: #fff !important;
  background: var(--color1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 8px 30px;
  opacity: 1;
  width: auto;
  border: none;
  border-radius: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button a,
.btn a {
  color: #fff !important;
}

.button svg {
  fill: #fff !important;
  width: 20px;
  height: 1em;
}

.button svg path {
  fill: #fff !important;
}

.button:hover {
  color: #fff;
  opacity: 0.8;
}

.button:active,
.btn:active {
  color: #666 !important;
  background: #ccc !important;
}

.wf_caption span {
  font-size: 0.9rem;
}

/* ---------------------------------------------- pulsante "Modifica" sull'articolo (layout editbutton.php) */
.gd-edit {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 0.5rem;
}

.gd-edit .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: auto;
}
/* ---------------------------------------------- modifica dei moduli dal sito (Joomla, solo utenti connessi)
   Joomla inserisce nel primo tag di ogni modulo un pulsante .jmodedit e un tooltip [role="tooltip"]:
   il pulsante è una matita rotonda che compare passando sopra al modulo, il tooltip passando sopra alla matita. */
:has(> .jmodedit) {
  position: relative;
}

.btn.jmodedit {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1d2939 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.15s;
}

:has(> .jmodedit):hover > .btn.jmodedit,
.btn.jmodedit:focus-visible {
  opacity: 1;
}

.btn.jmodedit:hover {
  background: #2a69b8 !important;
}

.jmodedit + [role="tooltip"] {
  display: none;
  position: absolute;
  top: 38px;
  right: 4px;
  z-index: 901;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: #1d2939;
  color: #e4e7ec;
  font: 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.jmodedit:hover + [role="tooltip"],
.jmodedit:focus-visible + [role="tooltip"] {
  display: block;
}

/* Icona di modifica delle voci di menu (frontediting = "Moduli e menu") */
.jmenuedit {
  margin-left: 0.25em;
  font-size: 12px;
}
/* ---------------------------------------------- pulsanti dentro i campi dei moduli di Joomla
   (calendario, mostra password...): misura normale di Bootstrap invece di quella dei pulsanti del sito */
.input-group > .btn {
  padding: 0.375rem 0.75rem;
  border-radius: var(--bs-border-radius, 0.375rem);
}

.input-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ---------------------------------------------- moduli di Joomla sul sito (modifica moduli e articoli, accesso, contatti)
   Override dei CSS di Choices.js e del calendario: media/css/vendor/choicesjs e media/css/system/fields (come Cassiopeia).
   Qui: colori del sito e spaziature dei campi. */
.control-group {
  margin: 1rem 0;
}

.control-label label,
.control-label .form-label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}


/* Pagine di modifica (modulo dal sito, articolo dal sito): colonna centrata e leggibile */
.com_config.view-modules #content,
.com_content.view-form #content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.com_config.view-modules #content hr,
.com_content.view-form #content hr {
  margin: 1.5rem 0;
  opacity: 0.15;
}
/* ---------------------------------------------- al posto di override di Joomla che cambiavano solo una classe */
/* immagine introduttiva degli articoli (era intro_image.php con "img-fluid") */
.item-image img {
  max-width: 100%;
  height: auto;
}

/* selettore della lingua (era mod_languages/default.php con "d-flex") */
.mod-languages {
  display: flex;
}
/* ---------------------------------------------- pulsante "altri siti" (layout sites.php, script sites.js)
   Configurazione: stile del template, scheda "Altri siti" */
#sites-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#sites-switcher-fab {
  border: 0;
  padding: 0;
  width: 60px;
  height: 60px;
  background-color: var(--color1, #ff8001);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
#sites-switcher-fab:hover {
  transform: scale(1.1);
}
#sites-switcher.open #sites-switcher-fab {
  background-color: var(--color1, #6a74b5);
}
#sites-popup {
  display: block;
  position: absolute;
  bottom: 75px;
  left: 0;
  width: auto;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  min-width: 320px;
}
#sites-popup::after {
  content: '';
  position: absolute;
  bottom: -10px; /* Altezza della punta */
  left: 20px; /* Posiziona la punta al centro del pulsante */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white; /* Colore uguale allo sfondo del popup */
}
#sites-switcher.open #sites-popup {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
#sites-popup ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#sites-popup ul li {
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Permette agli elementi di andare a capo */
  padding-bottom: 10px;
  border-bottom: 1px solid #eee; /* Aggiunge un separatore */
}
#sites-popup ul li img {
  margin-right: 10px;
  width: 30px;
  height: auto;
}
#sites-popup ul li span {
  flex-basis: 100%; /* Occupa tutta la larghezza, andando a capo */
  font-size: 0.8em;
  color: #777;
  padding-left: 40px; /* Allinea con il link (30px svg + 10px margin) */
  text-align: left;
  white-space: nowrap; /* Impedisce al testo di andare a capo */
  overflow: hidden; /* Nasconde il testo in eccesso */
  text-overflow: ellipsis; /* Aggiunge i puntini di sospensione */
}
#sites-popup ul li:last-child {
  margin-bottom: 0;
  border-bottom: none; /* Rimuove il separatore per l'ultimo elemento */
}
#sites-popup a {
  color: var(--color1, #6a74b5);
  text-decoration: none;
  font-size: 1em;
  padding: 8px 0;
  transition: background-color 0.2s;
}
#sites-popup a:hover {
  background-color: #f0f0f0;
}
#sites-popup a.current {
  font-weight: bold;
  color: var(--color1, #ff8001);
  cursor: default;
}
#sites-popup-close {
  display: none;
}
@media only screen and (max-width: 768px) {
  #sites-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    bottom: auto;
    right: auto;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #sites-popup::after {
    display: none;
  }
  #sites-popup ul {
      width: 80%;
  }
  #sites-popup ul li {
    border-bottom-color: #444; /* Bordo più scuro per il tema mobile */
  }
  #sites-popup a {
    color: white;
    font-size: 1.5em;
  }
  #sites-popup a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  #sites-popup a.current {
    color: var(--color1, #ff8001);
  }
  #sites-popup ul li span {
    color: #ccc; /* Colore più chiaro per il tema scuro */
    font-size: 0.8em;

  }
  #sites-popup-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
  #sites-popup-close::before,
  #sites-popup-close::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: white;
  }
  #sites-popup-close::before {
    transform: rotate(45deg);
  }
  #sites-popup-close::after {
    transform: rotate(-45deg);
  }
}
.circular-text-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px; /* Diametro maggiore del pulsante (60px) + spazio */
  height: 50px;
  margin-top: -25px; /* Metà altezza */
  margin-left: -25px; /* Metà larghezza */
  pointer-events: none; /* Non intercetta i click */
  animation: rotate 20s linear infinite;
  transition: opacity 0.3s ease;
  opacity: 1;
}
#sites-switcher:hover .circular-text-svg {
  animation-play-state: paused;
}
#sites-switcher.open .circular-text-svg {
  opacity: 0;
}
#sites-switcher-fab img {
  width: 45%;
  height: auto;
}

#sites-popup-close {
  padding: 0;
  border: 0;
  background: none;
}

/* ---------------------------------------------- logo (stile del template, scheda Aspetto) */
.gd-logo {
  display: flex;
  align-items: center;
  padding: 0 1vw;
}

.gd-logo img {
  width: auto;
  max-height: 8vh;
  transition-duration: 0.6s;
}

nav#menu.sticky .gd-logo img {
  max-height: 6vh;
}

/* ---------------------------------------------- commenti Disqus sotto gli articoli */
.gd-comments {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.gd-comments #disqus_thread {
  text-align: left;
}
