/* Standard Styles */

* {
  font-family: "Titillium Web", "sans-serif";
}

.single-news h1 {
  padding: 0 10px;
}

strong {
  font-weight: 700;
}

summary {
  padding: 16px 24px !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  border: 0 !important;
  border-bottom: 1px solid lightgray !important;
  color: #0066cc !important;
  font-weight: 600;
}

summary svg {
  fill: #0066cc !important;
}

details:first-of-type summary {
  border-top: 1px solid lightgray !important;
}

details [role="region"] {
  padding: 18px 24px;
  border: 0;
  border-bottom: 1px solid lightgray !important;
}

details[open] summary {
  background: #0066cc;
  color: white !important;
}

details[open] summary svg {
  fill: white !important;
}

.info-card > .e-con-inner {
  padding: 24px !important;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
  margin-bottom: 24px !important;
}

.expanded-info h4,
.expanded-info h2 {
  padding: 8px 16px;
  font-size: 24px;
  color: white !important;
  background-color: #003366;
}

.expanded-info .elementor-widget-text-editor {
  padding: 16px;
}

.elementor-image-box-wrapper .elementor-image-box-content {
  padding: 24px !important;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
}

main#content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#colophon {
  margin-top: auto;
}

.rt-grid-item {
  width: 471px;
  border-radius: 4px;
}

.rt-grid-item img {
  width: 471px;
  height: 160px;
  object-fit: cover;
}

a[href$=".pdf"],
a[href$=".PDF"],
a[href$=".doc"],
a[href$=".DOC"],
a[href$=".docx"],
a[href$=".DOCX"],
a[href$=".odt"],
a[href$=".csv"],
a[href$=".ppt"],
a[href$=".pptx"],
a[href$=".xls"],
a[href$=".XLS"],
a[href$=".xlsx"],
a[href$=".XLSX"],
a[href^="mailto:"] {
  text-decoration: underline;
}


.single-news-container a[href$=".pdf"]:before,
.single-news-container a[href$=".PDF"]:before {
  content: "\f1c1";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  width: 50px;
  height: 50px;
  padding-right: 12px;
}

.elementor-widget-image a[href$=".pdf"]:before,
.elementor-widget-image a[href$=".PDF"]:before {
  content: none !important;
}

.single-news-container a[href$=".doc"]:before,
.single-news-container a[href$=".DOC"]:before,
.single-news-container a[href$=".docx"]:before,
.single-news-container a[href$=".DOCX"]:before,
.single-news-container a[href$=".odt"]:before,
.single-news-container a[href$=".csv"]:before,
.single-news-container a[href$=".ppt"]:before,
.single-news-container a[href$=".xls"]:before,
.single-news-container a[href$=".XLS"]:before,
.single-news-container a[href$=".xlsx"]:before,
.single-news-container a[href$=".XLSX"]:before {
  content: "\f15b";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  width: 50px;
  height: 50px;
  padding-right: 12px;
}

/* Header Search Bar */

#main-search .e-con-inner {
  margin-right: 0;
}

#clear-with-button:focus-visible,
.hfe-search-submit:focus-visible {
    border: 2px solid #004D99;
    border-radius: 4px;
}

.hfe-search-button-wrapper{
  margin: 0;
}

.hfe-search-button-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.hfe-search-button-wrapper input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.hfe-search-button-wrapper button {
  flex: 0 0 auto;
}



/* Header Hero slider bg */

.wpr-slider-item .wpr-cv-container .wpr-cv-outer .wpr-cv-inner {
  background: linear-gradient(to right, #0066cc 15%, rgba(0, 102, 204, 0) 100%);
}

/* Alternative hero */

/* Prev-cursor on left */
.wppsac-post-slider.design-2 .slick-prev {
  left: 0 !important;
}

/* Both arrows Up */
.wppsac-post-slider.design-2 .slick-arrow {
  top: 50% !important;
  transform: translateY(-50%);
  margin-left: 72px;
  margin-right: 72px;
}

/* Dots Centered */
.wppsac-post-slider.design-2 .slick-dots {
  left: 50% !important;
  transform: translateX(-50%);
}

.wppsac-post-slider.design-2 .slick-arrow svg {
  width: 16px;
  fill: #004d99;
}

.wppsac-post-slider .slick-arrow {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: white;
}

/* Gradient full width and color */
.wppsac-post-slider.design-2 .wppsac-post-content-left {
  width: 100%;
  background: linear-gradient(to right, #0066cc 50%, rgba(0, 102, 204, 0) 100%);
}

/* Width sub-content */
.wppsac-sub-content {
  width: 50%;
}

/* Content padding */
.wppsac-post-slider.design-2 .wppsac-post-content-left {
  padding: 24px 140px;
}

/* Title Content */
.wppsac-post-slider h2.wppsac-post-title a {
  color: var(--color-white, #fff);
  font-family: "Titillium Web";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  /* 120% */
  letter-spacing: -1px;
}

.wppsac-post-slider h2.wppsac-post-title {
  width: 50%;
  margin: 0 !important;
  margin-bottom: 24px !important;
}

/* Sub-content */
.wppsac-sub-content {
  color: var(--color-white, #fff);
  font-family: Lora;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  /* 150% */
  letter-spacing: -0.16px;
}

/* Button Read more */
.wppsac-post-content .wppsac-readmorebtn {
  text-align: center;
  font-family: "Titillium Web";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  /* 150% */
  letter-spacing: -0.16px;
  background: white;
  color: #0066cc !important;
  border-radius: 4px;
  padding: 12px 24px;
  margin: 0;
  margin-top: 60px;
}

/* Button Dots */
.wppsac-post-slider .slick-dots li button {
  border: none;
  width: 8px !important;
  height: 8px !important;
  background: #94c4f5 !important;
}

.wppsac-post-slider .slick-dots li.slick-active button {
  background: #f2f7fc !important;
}

.wppsac-post-slider.design-2 .wppsac-post-content-position {
  min-height: 400px;
}

/* ------------------- */
/* Secondo Menu */
/* Stile base del sotto-menu */
#menu-1-65551f5 li .sub-menu {
  display: grid;
  grid-template-columns: 1fr;
  /* Una colonna di default */
  padding: 22px 14px;
  margin: 0;
  gap: 0;
  grid-auto-flow: dense;
  /* Previene celle vuote */
  /*   min-width: 55vw; */
  min-width: min(90vw, 1064px);
  /* Adatta la larghezza fino a 1025px */
  max-width: 60vw;
  /* Spazio per eventuali tre colonne */
}

/*TRANSITION E TRANSFORM DEL MENU*/
.hfe-nav-menu__layout-horizontal .hfe-nav-menu .sub-menu,
.hfe-submenu-action-hover .hfe-layout-vertical .hfe-nav-menu .sub-menu {
  transition: all 100ms ease-in !important;
}

.hfe-nav-menu__layout-horizontal li.menu-item:hover span {
  transform: rotate(180deg);
  text-decoration: none;
}

.hfe-has-submenu-container a.hfe-menu-item:focus, 
.hfe-has-submenu-container a.hfe-sub-menu-item:focus {
  outline: 2px solid #004D99 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}



/* Far occupare la tendina lo stesso spazio per ogni voce */
.hfe-nav-menu li.menu-item {
  position: static !important;
}

/* Primi 6 elementi: colonna di sinistra */
#menu-1-65551f5 li .sub-menu li:nth-child(-n + 6) {
  grid-column: 1;
}

/* Elementi dal 7° al 12°: colonna centrale */
#menu-1-65551f5 li .sub-menu li:nth-child(n + 7):nth-child(-n + 12) {
  grid-column: 2;
}

/* Elementi dal 13° in poi: colonna di destra */
#menu-1-65551f5 li .sub-menu:has(li:nth-child(13)) li:nth-child(n + 13) {
  grid-column: 3;
}

/* Elementi dal 19° in poi: colonna di destra */
#menu-1-65551f5 li .sub-menu:has(li:nth-child(19)) li:nth-child(n + 19) {
  grid-column: 4;
}

/* Media query per dispositivi larghi */
@media (min-width: 768px) {
  #menu-1-65551f5 li .sub-menu {
    grid-template-columns: repeat(2, 1fr);
    /* Di default, due colonne */
    gap: 10px;
  }

  /* Passa a tre colonne solo se ci sono almeno 13 voci */
  #menu-1-65551f5 li .sub-menu:has(li:nth-child(13)) {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* Passa a quattro colonne solo se ci sono almeno 19 voci */
  #menu-1-65551f5 li .sub-menu:has(li:nth-child(19)) {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

/* Ultime tre voci del menu */
#menu-1-65551f5 li:nth-last-child(-n + 3) .sub-menu {
  left: auto;
  right: 0;
}

/* Nascondere border-bottom */
.elementor-539
  .elementor-element.elementor-element-65551f5
  .sub-menu
  li.menu-item:not(:last-child) {
  border-bottom-style: none !important;
}

/* SVG icona sottovoce */
.sub-menu li a {
  background-image: url("/wp-content/uploads/2025/01/caret-right.svg");
  background-repeat: no-repeat;
  background-position: left center;
  /* Posiziona l'icona sulla sinistra, al centro verticalmente */
}

/* ----------------------------- */

/* ------------------------ */
/* Primo menu aggiornato */
#menu-1-b25ca10 li .sub-menu {
  display: grid;
  grid-template-columns: 1fr;
  /* Una colonna di default */
  padding: 22px 14px;
  margin: 0;
  gap: 0;
  grid-auto-flow: dense;
  /* Previene celle vuote */
  min-width: min(90vw, 683px);
  /* Adatta la larghezza fino a 1025px */
  max-width: min(90vw, 60vw);
  /* Limita la larghezza massima */
}

.hfe-nav-menu__layout-horizontal .hfe-nav-menu {
  flex-wrap: nowrap !important;
}

/* Primi 6 elementi: colonna di sinistra */
#menu-1-b25ca10 li .sub-menu li:nth-child(-n + 6) {
  grid-column: 1;
}

/* Elementi dal 7° al 12°: colonna centrale */
#menu-1-b25ca10 li .sub-menu li:nth-child(n + 7):nth-child(-n + 12) {
  grid-column: 2;
}

/* Elementi dal 13° al 18°: colonna di destra */
#menu-1-b25ca10 li .sub-menu li:nth-child(n + 13):nth-child(-n + 18) {
  grid-column: 3;
}

/* Elementi dal 19° in poi: quarta colonna */
#menu-1-b25ca10 li .sub-menu li:nth-child(n + 19) {
  grid-column: 4;
}

/* Media query per dispositivi larghi */
@media (min-width: 1025px) {
  #menu-1-b25ca10 li .sub-menu {
    grid-template-columns: repeat(2, 1fr);
    /* Di default, due colonne */
    gap: 10px;
  }

  /* Passa a tre colonne se ci sono almeno 13 voci */
  #menu-1-b25ca10
    li
    .sub-menu:has(li:nth-child(13)):not(:has(li:nth-child(19))) {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Passa a quattro colonne se ci sono almeno 19 voci */
  #menu-1-b25ca10 li .sub-menu:has(li:nth-child(19)) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Allineamento e stile delle icone, identico al secondo menu */
#menu-1-b25ca10 li .sub-menu li a {
  background-image: url("/wp-content/uploads/2025/01/caret-right.svg");
  background-repeat: no-repeat;
  background-position: left center;
  color: #004d99;
}

/* "Come fare per" Desktop */
.owce-carousel .owl-nav .owl-prev {
  float: left;
  left: -60px !important;
}

.owce-carousel .owl-nav .owl-next {
  float: right;
  right: -60px !important;
}

.owl-stage-outer .owl-stage .item {
  min-height: 210px;
}

.owce-carousel .item {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.owce-carousel .item:hover {
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}

.owl-nav button:focus {
  outline: 2px solid #004D99;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.3);
}

.owl-nav button:hover:not([disabled]),
.owl-nav button:focus:not([disabled]) {
  border-radius: 4px;
}

.owl-nav button.disabled {
  cursor: not-allowed !important;
  opacity: 0.5;
}

/* Focus visibile per i pulsanti .owl-dot */
.owl-dot:focus {
  outline: 2px solid #1A1A1A !important;
}


/* Come fare per */
.owl-stage-outer {
  height: 240px;
}

.wpr-slider-arrow {
  z-index: 98 !important;
}

.home footer .elementor-8687 {
  display: none;
}

/* Come fare per Tablet  (changed 1223px)*/
@media only screen and (min-width: 768px) and (max-width: 1353px) {
  .owl-stage {
    display: flex;
    /* Imposta un layout flessibile */
    flex-wrap: wrap;
    /* Consenti ai figli di andare a capo */
    align-items: stretch;
    /* Allinea i figli alla stessa altezza */
    width: 100%;
    /* Assicura che occupi tutta la larghezza */
  }

  .owl-item {
    flex: 1;
    /* Assicura che gli elementi figli abbiano larghezza flessibile */
    display: flex;
    /* Rendi anche i figli flexbox */
  }

  .owl-item .item {
    flex-grow: 1;
    /* Fa crescere l'elemento fino a occupare tutta l'altezza disponibile */
    display: flex;
    /* Se necessario, puoi usarlo per centrare contenuti interni */
    align-items: center;
    /* Centra verticalmente il contenuto interno */
    justify-content: center;
    /* Centra orizzontalmente il contenuto interno */
    box-sizing: border-box;
    /* Considera padding e bordo nelle dimensioni */
  }

  .owl-stage .owl-item .item {
    padding: 20px !important;
  }

  .owl-stage-outer .owl-stage .item {
    /*     min-height: 277px!important; */
  }

  .owce-carousel-container {
    padding: 0 61px !important;
  }

  .owce-carousel .owl-content {
    height: 48px;
  }
}

.owce-carousel .owl-nav i {
  font-size: 16px !important;
  background-color: #0066cc !important;
}

.owl-theme .owl-nav .disabled {
  opacity: 1 !important;
}

.owl-prev.disabled i,
.owl-next.disabled i {
  background-color: #d9dadb !important;
  color: #768594 !important;
}

/* Come fare per Mobile */
@media only screen and (max-width: 767px) {
  /* .owl-nav .owl-prev,
    .owl-next {
        display: none !important;
    } */

  #come-fare-per {
    padding: 0;
  }

  #come-fare-per .e-con-inner {
    gap: 0;
  }

  #come-fare-per .owl-dots {
    display: none;
  }

  #come-fare-per h2 {
    font-size: 28px;
    text-align: left;
    padding-left: 24px;
  }

  .owl-stage-outer {
    padding-top: 0 !important;
  }
  .owce-carousel .owl-nav .owl-prev {
    left: -16px !important;
  }
  .owce-carousel .owl-nav .owl-next {
    right: -16px !important;
  }
  /* .owl-stage .owl-item{
        width: 222px!important;
    } */

  /* .owce-carousel .owl-nav i{
        font-size: 16px!important;
        background-color: #0066CC!important;
    }

    .owl-theme .owl-nav .disabled{
        opacity: 1!important;
    }

    .owl-prev.disabled i, .owl-next.disabled i{
        background-color: #D9DADB!important;
        color: #768594!important;
    } */

  .owce-carousel .owl-nav .owl-prev {
    float: left;
    left: -60px !important;
  }
  .owce-carousel .owl-nav .owl-next {
    float: right;
    right: -60px !important;
  }

  .owl-dots {
    display: none;
  }
  .js-owce-carousel-container.owce-carousel-container {
    display: flex;
    justify-content: center;
  }

  #owce-carousel-febbc53,
  .owl-item,
  .owl-item .item {
    width: 222px !important;
    height: 234px !important;
  }
}

/* ------------------ */
/* Sidebar */
.single-sidebar .primary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.single-sidebar h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
}

.single-sidebar .action-container {
  background-color: #f2f7fc;
  border-radius: 4px;
  padding: 18px;
}

.single-sidebar .image-group figure {
  margin: 0;
}

.elementor-element.elementor-element-511dd68 {
  transition: padding-bottom 0.2s ease-in-out;
}

.slick-dots {
  width: 100% !important;
}

/* In Evidenza Homepage */
/*CSS spostato nel componente In Evidenza Pages*/

/*-----------CSS FORM-----------*/

#information_h6 {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.information_art13 {
  color: #5c6f82;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/*---------FINE CSS FORM--------*/

/*------MEDIA QUERY PRINT-------*/
@media print {
  body * {
    visibility: hidden;
  }

  .single-news-wrapper,
  .single-news-wrapper * {
    visibility: visible;
  }

  .single-news-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 90%;
  }

  .back-to-top,
  .single-sidebar,
  .share-modal,
  .share-section,
  .pagination,
  footer,
  a {
    display: none;
  }

  a[href]:after {
    content: none !important;
  }
}

/* Fix Private Area and Login margin right*/

#private-login .e-con-inner {
  margin-right: 0;
}

/* Vai alla pagina  */
.vai-pagina a:active {
  background-color: #003366 !important;
}

/* ------------------------ */

/* Style 'Vedi tutti' button when pressed */
#vedi-tutti a:active {
  background-color: #003366;
  color: white;
}

/* ------------------------ */
.elementor-539
  .elementor-element.elementor-element-b25ca10
  .sub-menu
  li.menu-item:not(:last-child) {
  border-bottom-style: none !important;
}

/* Allineamento svg sottovoci 2 menu */
#menu-1-65551f5 .sub-menu li,
#menu-1-b25ca10 .sub-menu li {
  margin-top: auto;
  margin-bottom: auto;
}

/*------Area Privata---Link Utili---Medicina Legale--*/

#areaprivata_old .e-con-inner,
#linkutili .e-con-inner {
  display: block;
  columns: 3;
}

.strutture .e-con-inner {
  display: block;
  columns: 2;
}

.strutture a:hover,
#strutture-sanitarie a:hover {
  text-decoration: underline;
  text-decoration-color: #0066cc;  
}


@media (max-width: 1024px) {
  #areaprivata_old .e-con-inner,
  #linkutili .e-con-inner {
  display: block;
  columns: 2;
  }

  .strutture .e-con-inner {
    columns: 1;
  }
}

#areaprivata .e-child,
#linkutili .e-child,
.strutture .e-child {
  break-inside: avoid;
}

#areaprivata a[href$=".pdf"],
#linkutili a[href$=".pdf"],
.strutture a[href$=".pdf"] {
  text-decoration: none;
  color: inherit;
}

#areaprivata a[href$=".pdf"]::before,
#areaprivata a[href$=".pdf"]::after,
#linkutili a[href$=".pdf"]::before,
#linkutili a[href$=".pdf"]::after,
.strutture a[href$=".pdf"]::before,
.strutture a[href$=".pdf"]::after {
  content: none;
}


/* ------------------------------------------- */
/* Locker 'Area privata' path stroke change */

#locker .elementor-button:hover {
  color: #ffffff !important;
  background-color: #004D99 !important;
}

#locker .elementor-button:hover svg path[stroke] {
  stroke: #ffffff !important;
}

#locker .elementor-button:focus {
  color: #0066cc !important;
  background-color: #fff !important;
  border: 3px solid #024 !important;
}

#locker .elementor-button:active svg path[stroke] {
  stroke: #003366;
}

#locker .elementor-button:active {
  color: #003366;
}


/* Login hover & active */
#login-button:hover svg path[stroke],
#logout-button:hover svg path[stroke] {
  stroke: #004d99;
}

#login-button:hover a,
#logout-button:hover a {
  color: #004d99;
  background-color: #bfdfff;
  border-radius: 4px;
  border: 2px solid var(--color-white, #fff);
}

#login-button:active svg path[stroke],
#logout-button:active svg path[stroke] {
  stroke: white;
}

#login-button:active a,
#logout-button:active a {
  color: white;
  background-color: #003366;
  border-radius: 4px;
  border: 2px solid var(--color-white, #fff);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #locker a .elementor-button-text,
  #login-button a .elementor-button-text,
  #logout-button a .elementor-button-text {
    display: none;
  }
}

/* Area Pirvata e Login Mobile */
@media only screen and (max-width: 767px) {
  #locker a .elementor-button-text,
  #login-button a .elementor-button-text,
  #logout-button a .elementor-button-text {
    display: none;
  }

  #private-login {
    width: 50%;
  }

  #private-login .elementor-button {
    padding: 12px;
  }

  /* 	Per vedere l'header eliminare questo stile */
  /* #top-block {
        display: none;
    } */

  header .elementor-element.elementor-element-511dd68 {
    background-color: white;
  }

  #urp-servizi #urp .elementor-widget-image {
    width: 40%;
  }

  #urp-servizi #urp .elementor-element-084a261 {
    width: 60%;
  }

  #urp-servizi #carta-servizi .elementor-widget-image {
    width: 40%;
  }

  #urp-servizi #carta-servizi .elementor-element-7533517 {
    width: 60%;
  }

  #strutture-sanitarie a {
    width: 47%;
  }

  #fascicolo-sanitario .elementor-widget-container h2 {
    font-weight: 600;
  }

  #fascicolo-sanitario .elementor-widget-container p {
    font-weight: 400;
  }
}

/* ------------------------------------------- */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .wpr-slider-prev-arrow,
  .wpr-slider-next-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  .wpr-slider-prev-arrow {
    margin-left: 30px;
  }

  .wpr-slider-next-arrow {
    margin-right: 30px;
  }

  /* Tablet Struttre Sanitarie */

  .elementor-element-a535dce a {
    width: 20%;
  }
}

/* Mobile First Carousel "Comunicati" */

@media only screen and (max-width: 767px) {
  /* #wpr-slider-prev-1f62f6d,
    #wpr-slider-next-1f62f6d {
        display: block ;
    } */

  .wpr-slider-prev-arrow {
    margin-left: 20px;
  }

  .wpr-slider-next-arrow {
    margin-right: 20px;
  }

  .wpr-slider-prev-arrow,
  .wpr-slider-next-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  .wpr-slider-prev-arrow i,
  .wpr-slider-next-arrow i {
    width: 16px;
  }

  #first-carousel
    .wpr-advanced-slider.slick-initialized.slick-slider.slick-dotted {
    height: 613px;
  }

  #first-carousel .slick-list.draggable {
    height: 613px;
  }

  #first-carousel .wpr-slider-item {
    height: 613px;
  }

  #first-carousel .wpr-slider-content .wpr-slider-title {
    margin-bottom: 24px;
    /* height: 200px; */
  }

  #first-carousel .wpr-slider-content h2 {
    /* height: 120px; */
    /* height: 160px; */
    height: 112px;
    overflow: hidden;
  }

  #first-carousel .wpr-slider-description {
    height: 144px;
    margin-bottom: 100px;
  }

  #first-carousel .wpr-slider-description p {
    /* height: 250px; */
    /* margin-bottom: 32px; */
    /* margin-bottom:128px; */
    /* height: 144px; */
    font-family: Lora;
    font-weight: 400;
    line-height: 24px;
    overflow: hidden;
  }

  #first-carousel .wpr-slider-content {
    padding-top: 69px;
  }

  #first-carousel .wpr-slider-content .wpr-slider-btns {
    display: flex;
    flex-direction: column;
    align-items: start;
    /* margin-left: 40px; */
    margin-left: 80px;
    gap: 16px;
  }

  .wpr-slider-item .wpr-cv-container .wpr-cv-outer .wpr-cv-inner {
    display: flex;
    background: none;
  }
  .wpr-cv-container {
    opacity: 0.95;
    background: linear-gradient(
      180deg,
      rgba(0, 102, 204, 0.98) 69.43%,
      rgba(0, 102, 204, 0.2) 100%
    );
  }

  .slick-active span {
    background-color: #0066cc !important;
  }

  .elementor-644 .elementor-element.elementor-element-1f62f6d .wpr-slider-dots {
    top: 102%;
  }

  #dedicato-a
    .e-con-inner
    a
    .elementor-element
    .elementor-widget-container
    .elementor-icon-wrapper
    .elementor-icon {
    display: flex;
  }
}

#masthead {
  position: sticky !important;
  top: 0;
}

/* wpadminbar fix on mobile */
@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

@media (max-width: 767px) {
  .elementor-644 .elementor-element.elementor-element-a5c954c {
    justify-content: center !important;
  }
}

/* BOX PDF, DOC e XLS */
.single-news a[href$=".pdf" i].box-pdf,
.single-news a[href$=".doc" i].box-pdf,
.single-news a[href$=".docx" i].box-pdf,
.single-news a[href$=".csv" i].box-pdf,
.single-news a[href$=".xls" i].box-pdf,
.single-news a[href$=".xlsx" i].box-pdf,
.single-news a[href$=".pptx" i].box-pdf {
  text-decoration: none;
}

.single-news a[href$=".pdf" i].box-pdf::before,
.single-news a[href$=".doc" i].box-pdf::before,
.single-news a[href$=".docx" i].box-pdf::before,
.single-news a[href$=".csv" i].box-pdf::before,
.single-news a[href$=".xls" i].box-pdf::before,
.single-news a[href$=".xlsx" i].box-pdf::before,
.single-news a[href$=".pptx" i].box-pdf::before {
  display: none;
}
/* FINE BOX PDF, DOC, XLS */


/* Menu Mobile */

#menu-1-98be43b .hfe-menu-item[aria-expanded="true"] {
  box-shadow: 3px 0 0 0 #0066cc inset;
  padding-left: 16px;
}

#menu-1-98be43b .sub-menu li a {
  background-image: none;
  padding-left: 16px;
}

#menu-1-98be43b .hfe-menu-toggle:hover {
  border: 1px solid transparent;
}


/*WIDGET-MOBILE*/
.elementor-button-content-wrapper{
  align-items: center;
}

.widget-mobile svg{
  width: 28px !important;
  height: 28px !important;
}
.widget-mobile .elementor-button{
  padding: 8px 16px;
}

/* TABLE CONTAINER */
.custom-table-container {
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

/* HEADER E CELLE */
table th {
  text-align: left !important;
  border: none !important;
  border-bottom: 2px solid #1a1a1a !important;
}

table td {
  border: none !important;
  border-bottom: 0.5px solid #5c6f8280 !important;
}

/* RESPONSIVE PER TABLET */
@media (max-width: 899px) {
  .custom-table-container {
    max-width: 30rem;
  }

  .fade-effect {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
    pointer-events: none;
    background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
  }
}

@media (max-width: 819px) {
  .custom-table-container {
    max-width: 28rem;
  }
}

/* RESPONSIVE PER MOBILE */
@media (max-width: 767px) {
  .custom-table-container {
    max-width: 100%;
  }

  table {
    font-size: 14px !important;
    min-width: 100%;
  }
}

@media (min-width: 899px) {
  table a {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
  }
}

/*CUSTOM FORM*/
    @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

    .custom_form .form-heading {
        color: #036;
        font-size: 28px;
        font-weight: 700;
        line-height: 32px;
    }

    .custom_form p {
        margin: 0;
    }

    .custom_form br {
        display: none;
    }

    .custom_form .form-row {
        display: flex;
        flex-wrap: wrap;
        margin: 24px 0;
    }

    .custom_form .form-column {
        flex: 1;
        min-width: 200px;
        margin-right: 10px;
    }

    .custom_form .form-recaptcha{
      margin-top: 30px;
    }

    .custom_form .req_field {
        font-size: 12px;
        margin-top: 12px;
    }

    .custom_form .wpcf7-not-valid-tip span {
        margin: 0;
    }

    .custom_form .form-email input[type="email"] {
        padding-left: 40px;
        width: 100%;
        box-sizing: border-box;
        background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"%3E%3Cpath d="M3 7C3 6.46957 3.21071 5.96086 3.58579 5.58579C3.96086 5.21071 4.46957 5 5 5H19C19.5304 5 20.0391 5.21071 20.4142 5.58579C20.7893 5.96086 21 6.46957 21 7M3 7V17C3 17.5304 3.21071 18.0391 3.58579 18.4142C3.96086 18.7893 4.46957 19 5 19H19C19.5304 19 20.0391 18.7893 20.4142 18.4142C20.7893 18.0391 21 17.5304 21 17V7M3 7L12 13L21 7" stroke="%230066CC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3C/path%3E%3C/svg%3E') no-repeat 10px center;
        background-size: 24px;
    }

    .custom_form .form-column:last-child {
        margin-right: 0;
    }

    .custom_form label {
        display: block;
        color: #2F475E;
        font-size: 14px;
        font-weight: 600;
        line-height: 24px;
        width: 100%;
    }

    .custom_form textarea {
        width: 100%;
        height: 100px;
    }

    .custom_form input[type="text"]:hover,
    .custom_form input[type="email"]:hover,
    .custom_form textarea:hover {
        background-color: #F2F7FC;
    }

    .custom_form input[type="text"]:active,
    .custom_form input[type="email"]:active,
    .custom_form textarea:active {
        background-color: #FFFFFF;
    }

    .custom_form input[type="text"]:focus,
    .custom_form input[type="email"]:focus,
    .custom_form textarea:focus {
        background-color: #FFFFFF;
        outline: 1px solid #5C6F82;
        outline-offset: -4px;
    }

    .custom_form input[type="text"]:disabled,
    .custom_form input[type="email"]:disabled,
    .custom_form textarea:disabled {
        background-color: #D9DADB;
    }

    .custom_form input[type="text"],
    .custom_form input[type="email"],
    .custom_form textarea {
        width: 100%;
        font-size: 14px;
        border: 1px solid #5C6F82;
        border-radius: 4px;
        background-color: #FFFFFF;
        box-sizing: border-box;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 10px;
    }

    .custom_form input[type="text"],
    .custom_form input[type="email"] {
        margin-bottom: 8px;
    }

    .custom_form #charCounter,
    .custom_form #charCounter p {
        color: #2F475E;
        font-family: "Roboto Mono";
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        text-align: end;
    }

    .custom_form .textarea {
        display: flex;
        justify-content: space-between;
    }

    .custom_form .information_art13 {
        color: #5C6F82;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .custom_form .submit-button {
        display: flex;
        gap: 5px;
        border-radius: 4px;
        background: #06C;
        color: white;
        font-size: 16px;
        padding: 12px 24px;
        margin-top: 36px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .custom_form .submit-button:hover {
        background-color: #004D99;
    }

    .custom_form .submit-button:focus {
        border: 2px solid #024;
        background: #06C;
    }

    .custom_form .submit-button:active {
        background: #036;
    }

    .custom_form .submit:disabled {
        background: #D9DADB;
    }

    .custom_form #information_h6 {
        color: #1A1A1A;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
    }

    .custom_form .wpcf7-list-item {
        margin: 0;
    }

    .custom_form .checkbox_container {
        display: flex;
    }

    .custom_form .checkbox_container input {
        margin-right: 10px;
    }

    .custom_form .alert {
        display: none;
        position: fixed;
        top: 240px;
        left: 50px;
        z-index: 900;
        background-color: #FFFFFF;
        padding: 15px;
        margin-bottom: 15px;
        width: 100%;
        max-width: 400px;
        margin: 10px auto;
    }

    .custom_form .closebtn {
        cursor: pointer;
    }

    .custom_form .alert strong {
        color: #1A1A1A;
        font-size: 24px;
        font-weight: 600;
        line-height: 32px;
    }

    .custom_form .alert p {
        color: #1A1A1A;
        font-size: 18px;
        font-weight: 400;
        line-height: 28px;
    }

    .custom_form .alert_text {
        padding: 0px 5px;
        align-self: start;
    }

    .custom_form .success {
        border: 1px solid #2F475E;
        border-left: 6px solid #008055;
    }

    .custom_form .error {
        border: 1px solid #2F475E;
        border-left: 6px solid #CC334D;
    }

    .wpcf7-response-output {
        display: block;
        border: none !important;
        color: #CC334D !important;
    }



    @media (max-width: 768px) {
        .custom_form .form-column {
            margin-right: 0;
            margin-bottom: 10px;
        }

        .custom_form .form-row {
            margin: 0;
            gap: 10px;
        }

    }

/*FOOTER LINK*/
.elementor-493 .elementor-element.elementor-element-03e5e8e a,  
.elementor-493 .elementor-element.elementor-element-e5daed1 a {  
  color: #fff !important;  
  font-weight: 400 !important;
  text-decoration: underline;
}

/* single.css - single.php*/

/* Main container for the single news article */
.single-news-container {
  margin: 0 auto;
  padding: 20px;
}

/* Style for the single news article */
.single-news {
  border-bottom: 2px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

/* Style for the article header and title */
.news-header h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Style for the content of the article */
.news-content {
  margin-top: 20px;
  line-height: 1.6;
}

/* Style for the article metadata (date and author) */
.news-meta {
  margin-top: 20px;
  font-style: italic;
  font-size: 14px;
}

/* Footer style for the article (categories and tags) */
.news-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Style for the article categories and tags */
.news-categories,
.news-tags {
  font-size: 14px;
}
/* End of CSS styles for single.php */


/* news.css - archive.php */
/* Style for the archive page header */
.archive-header {
  text-align: center;
  padding: 20px;
  background-color: #f4f4f4;
  margin-bottom: 30px;
}

/* Style for the archive title */
.archive-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

/* New container to center and restrict the width of the content */
.archive-container {
  max-width: 1200px; 
  margin: 0 auto; 
}

/* Style for the container that holds all archive posts */
.archive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; 
}

/* Style for each post block in the archive */
.archive-post {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

/* Hover effect for the post block */
.archive-post:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Style for the post title */
.archive-post h2.post-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0073aa;
}

/* Style for the post excerpt */
.archive-post .post-excerpt {
  font-size: 16px;
  margin-bottom: 15px;
  color: #666;
}

/* Style for the 'Read more' button */
.archive-post .read-more {
  display: inline-block;
  padding: 8px 15px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* Hover effect for the 'Read more' button */
.archive-post .read-more:hover {
  background-color: #005f8a;
}

/* Style for pagination */
.page-numbers {
  display: flex; 
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
}

/* Style for each pagination link */
.page-numbers a {
  padding: 5px 10px;
  margin: 0 5px;
  text-decoration: none;
  color: #333;
}

/* Style for the current page in the pagination */
.page-numbers .current {
  background-color: #0073aa;
  color: #fff;
}

/* Nasconde il pulsante login se l'utente è loggato */
.logged-in #login-button {
	display: none !important;
}

/* Default: nascondi il pulsante logout */
#logout-button {
	display: none !important;
}

/* Se loggato: mostra il logout e nascondi il login */
.logged-in #logout-button {
	display: block !important;
}

.logged-in #login-button {
	display: none !important;
}

/* End of CSS styles for archive.php */
