/*
 Theme Name:   Hello Elementor Child - Sistema Calce
 Description:  Tema child per Hello Elementor
 Author:       Spider 4 Web
 Template:     hello-elementor
 Version:      1.0
 Text Domain:  hello-elementor-child
*/

/* Qui puoi scrivere i tuoi stili personalizzati */

html {
  font-size: 10px;
}
@media (min-width: 640px) {
  html {
    font-size: 8px;
  }
}
@media (min-width: 768px) {
  html {
    font-size: 8px;
  }
}
@media (min-width: 1024px) {
  html {
    font-size: 8px;
  }
}
@media (min-width: 1280px) {
  html {
    font-size: 9px;
  }
}
@media (min-width: 1536px) {
  html {
    font-size: 10px;
  }
}

.sticky-header {
  transition: all 0.6s ease !important;
}
.sticky-header.scrolled {
  top: 0 !important;
  z-index: 9999 !important;
}

.elementor-kit-6 .menu-item a {
  text-decoration: none;
}
.elementor-nav-menu .sub-arrow {
  font-size: 0.7em;
}
.elementor-nav-menu .elementor-item.elementor-item-active {
  font-weight: 700 !important;
}
.elementor-nav-menu .sub-arrow .e-font-icon-svg {
  fill: currentColor;
}

@media (min-width: 1024px) {
  .elementor-nav-menu--layout-horizontal
    .elementor-nav-menu.elementor-nav-menu
    > li:not(:first-child)
    > ul,
  .elementor-nav-menu .sub-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
.elementor-nav-menu--dropdown a {
  padding: 0.5rem 1rem !important;
  border: 0 !important;
}
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    padding: 1rem 2rem;
    background-color: #ffffff !important;
  }
  /* .elementor-nav-menu--dropdown a {
    padding: 0.5rem 0 !important;
    margin: 0 !important;
  } */
  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown {
    border: none !important;
    padding-bottom: 1rem;
  }
}

.elementor-heading-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.elementor-widget-text-editor a {
  color: inherit !important;
  text-decoration: underline;
}

.elementor-element .swiper .swiper-horizontal > .swiper-pagination-bullets,
.elementor-element
  .swiper
  .swiper-pagination-bullets.swiper-pagination-horizontal,
.elementor-element .swiper .swiper-pagination-custom,
.elementor-element .swiper .swiper-pagination-fraction,
.elementor-element
  .swiper
  ~ .swiper-pagination-bullets.swiper-pagination-horizontal,
.elementor-element .swiper ~ .swiper-pagination-custom,
.elementor-element .swiper ~ .swiper-pagination-fraction,
.elementor-lightbox .swiper .swiper-horizontal > .swiper-pagination-bullets,
.elementor-lightbox
  .swiper
  .swiper-pagination-bullets.swiper-pagination-horizontal,
.elementor-lightbox .swiper .swiper-pagination-custom,
.elementor-lightbox .swiper .swiper-pagination-fraction,
.elementor-lightbox
  .swiper
  ~ .swiper-pagination-bullets.swiper-pagination-horizontal,
.elementor-lightbox .swiper ~ .swiper-pagination-custom,
.elementor-lightbox .swiper ~ .swiper-pagination-fraction {
  bottom: 2rem !important;
}

.breadcrumb_last[aria-current="page"] {
  color: #7e9abf;
  font-weight: 700;
}

#contatti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 9999;
  pointer-events: none;
  max-height: 100vh;
  overflow: auto;
}

#contatti.js-open {
  transform: translateY(0);
  pointer-events: auto;
}
#contatti-close svg path {
  stroke: currentColor;
}
#contatti-close {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  margin: 2rem;
}
#contatti-close svg {
  width: auto;
  height: 3rem;
}
.js-open #contatti-close {
  display: block;
}

.acf-tabella {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f0ece7;
  color: #031e59;
  padding: 4rem;
  border-radius: 2rem;
  margin: 2rem 0 0;
}
.caratteristiche-silos .acf-tabella {
  padding: 1rem 0 0;
  border-radius: 0;
}
.caratteristiche-silos .acf-tabella td {
  width: 50%;
}
.acf-tabella table {
  width: 100%;
  max-width: 110rem;
  border-collapse: collapse;
  margin: 0 auto;
}

.acf-tabella th {
  font-size: 2rem;
  font-weight: 700;
}
.acf-tabella td {
  font-size: 2rem;
  font-weight: 400;
}
.acf-tabella tr {
  background: transparent;
}
.acf-tabella th,
.acf-tabella td {
  padding: 1.5rem 0 0.8rem;
  border: 1px solid #707070;
  border-width: 0 0 1px 0;
  text-align: center;
  background: transparent !important;
}
.acf-tabella th:first-child,
.acf-tabella td:first-child {
  text-align: left;
}
.acf-tabella th.is-empty {
  border: none !important;
}
.acf-tabella img {
  width: auto;
  height: 3rem !important;
}

@media (max-width: 768px) {
  .acf-tabella {
    padding: 2rem;
  }
  .acf-tabella th,
  .acf-tabella td {
    font-size: 1.6rem;
    padding: 1rem 0 0.5rem;
  }
  .acf-tabella img {
    height: 2rem !important;
  }
}

.acf-download {
  width: 100%;
  background: #d7cdba;
  color: #031e59;
  padding: 4rem;
  border-radius: 2rem;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  margin: 2rem 0 0;
}
.acf-download-bg {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 23rem;
}
.acf-download_container {
  width: 100%;
  max-width: 110rem;
  margin: 0 auto;
}

.acf-download-title {
  margin-bottom: 2rem;
}
.acf-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.acf-download-list li {
  margin: 0 0 1rem;
}
.acf-download-list li a {
  color: #031e59;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.acf-download-list img {
  width: auto;
  height: 2rem !important;
  margin-right: 2rem;
}

@media (max-width: 768px) {
  .acf-download {
    padding: 2rem;
    font-size: 1.6rem;
  }
  .acf-download-bg {
    width: 15rem;
  }
}
@media (min-width: 768px) {
  .acf-download-list {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
  }
  .acf-download-list li {
    width: 50%;
    padding: 0 2rem 0 0;
  }
}

.acf-data-articolo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.acf-data-articolo-giorno {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
}
.acf-data-articolo-mese {
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: lowercase;
  color: #000000;
}
.acf-data-articolo-anno {
  font-size: 1.2rem;
  line-height: 1.6rem;	
  font-weight: 300;
  text-transform: lowercase;
  color: #000000;
}

.template-prodotto {
  text-decoration: none !important;
  color: #ffffff !important;
}

.template-prodotto:hover .elementor-icon svg line,
.template-prodotto:hover .elementor-icon svg path {
  stroke: #ffffff !important;
}
.template-prodotto:hover .elementor-heading-title,
.template-prodotto:hover .elementor-widget-text-editor {
  color: #ffffff !important;
}

.template-blog {
  text-decoration: none !important;
}
.elementor-widget-image a img[src$=".svg"] {
  width: auto !important;
}

@media (max-width: 768px) {
  .template-servizio-icona {
    transform: scale(0.8);
    transform-origin: bottom left;
  }
}

.categorie-blog,
.ancore-settori {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 2.6rem;
  text-transform: uppercase;
  color: #707070;
  justify-content: center;
  align-items: center;
  line-height: 1;
}
.categorie-blog li a,
.ancore-settori li a {
  color: #707070;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 0.2em 0;
}
.categorie-blog li a.current,
.ancore-settori li a.current {
  color: #031e59;
  font-weight: 700;
}
.categorie-blog li,
.ancore-settori li {
  margin: 0;
}
.categorie-blog li a:before,
.ancore-settori li a:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75em;
  background-color: #707070;
  margin: 0 1.5rem;
  //vertical-align: middle;
}
.categorie-blog li:first-child a:before,
.ancore-settori li:first-child a:before {
  content: none;
}

.icone-mercati {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.icone-mercati .icona-singola {
  font-size: 6rem;
}
.icone-mercati img {
  width: auto;
  height: 1em !important;
  margin: 0 3rem 0 0;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .icone-mercati .icona-singola {
    font-size: 4rem;
  }
  .icone-mercati img {
    margin-right: 2rem;
  }
}

.s4w-lista-icone a {
  text-decoration: none !important;
  display: inline-block;
  padding: 0.2em 0;
}

.s4w-lista-servizi img {
  transform: scale(0.8);
}

.grid-prodotti {
  display: flex;
  flex-direction: column;
}
.grid-prodotti .e-loop-item {
  border-radius: 2rem;
  background: #f0ece7;
  padding: 3rem 3rem 3rem 6rem;
  margin-top: 2rem;
}
.grid-prodotti .e-loop-item > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}
.grid-prodotti .s4w-col-sx {
  width: 60%;
}
.grid-prodotti .s4w-col-icone {
  width: 100%;
}
.grid-prodotti .s4w-col-dx {
  width: 40%;
  justify-self: flex-end;
  align-self: flex-end;
  text-align: right;
}
.grid-prodotti .elementor-widget-heading .elementor-heading-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .grid-prodotti .e-loop-item {
    padding: 1rem 2rem 2rem;
  }
  .grid-prodotti .s4w-col-sx {
    width: 100%;
  }
  .grid-prodotti .s4w-col-dx {
    width: 100%;
    text-align: left;
    margin: 2rem 0 0;
  }
}

.swiper-slide-inner {
  text-decoration: none !important;
}

.elementor-widget-text-editor h2 {
  font-size: 1.8em !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.elementor-widget-text-editor h3 {
  font-size: 1.4em !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.lingue-wpml {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-top: -2rem;
}
.lingue-wpml li {
  margin: 0 0 0 1rem;
}
.lingue-wpml a {
  text-decoration: none !important;
  color: #031e59;
}
.is-white .lingue-wpml a {
  color: #ffffff !important;
}
.lingue-wpml a:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .lingue-wpml {
    margin-top: -2.4rem;
  }
}

/** grafico */

.wrapper {
  display: grid;
  grid-template-columns: 1fr minmax(10%, 11rem) 1fr minmax(10%, 11rem) 1fr;
  text-align: center;
  color: #001f5b;
}
.arrow-section {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-top,
.label-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
}

.label-top {
  bottom: 100%;
  margin-bottom: 1rem;
}

.label-bottom {
  top: 100%;
  margin-top: 1rem;
}

.arrow {
  width: 100%;
  height: auto;
  stroke: #0066cc;
  fill: none;
}

.arrow .arrow-line,
.arrow .arrow-point {
  stroke-width: 3px;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  /* animation: draw 2s forwards; */
}

.arrow-big {
  width: 75%;
  margin: 0 auto;
  height: auto;
  transform: translateX(-1%);
}
.grafico-section-5 .grafico-label-small {
  transform: translateY(-4.8rem);
}
.grafico-section-4 .grafico-label-small,
.grafico-section-6 .grafico-label-small {
  padding: 1rem 0;
}
.grafico-section__inner {
  position: relative;
  padding: 0 2rem;
}
.grafico-section-1b,
.grafico-section-2b {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Animazioni */
.grafico-label {
  font-size: 3.4rem;
  line-height: 1.2;
}
.grafico-label-small {
  font-size: 1.6rem;
  line-height: 1.2;
}
.grafico-img {
  width: 100%;
  max-width: 39rem;
  margin: 3rem auto;
}
.grafico-section {
  transform: translateY(2rem);
  opacity: 0;
  transition: all 0.2s ease;
}
.wrapper.js-active .grafico-section {
  transform: translateY(0);
  opacity: 1;
}
.wrapper.js-active .grafico-section-1 {
  transition-delay: 0ms;
}
.wrapper.js-active .grafico-section-1b {
  transition-delay: 0ms;
}

.wrapper.js-active .grafico-section-2 {
  transition-delay: 500ms;
}
.wrapper.js-active .grafico-section-2b {
  transition-delay: 1000ms;
}
.wrapper.js-active .grafico-section-3 {
  transition-delay: 1500ms;
}
.wrapper.js-active .grafico-section-4 {
  transition-delay: 1700ms;
}
.wrapper.js-active .grafico-section-5 {
  transition-delay: 1900ms;
}
.wrapper.js-active .grafico-section-6 {
  transition-delay: 2100ms;
}

.arrow line {
  animation-duration: 2s;
  animation-fill-mode: forwards;
  stroke: #001f5b;
  stroke-width: 3px;
  fill: none;
}

.arrow-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.arrow-point {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.js-active .arrow polyline,
.js-active .arrow line {
  animation-name: draw;
}
.js-active .arrow-1 .arrow-line {
  animation-delay: 0ms;
}
.js-active .arrow-1 .arrow-point {
  animation-delay: 300ms;
}
.js-active .arrow-2 .arrow-line {
  animation-delay: 1000ms;
}
.js-active .arrow-2 .arrow-point {
  animation-delay: 1300ms;
}

.arrow-big polyline,
.arrow-big line {
  animation-duration: 2s;
  animation-fill-mode: forwards;
  stroke: #001f5b;
  stroke-width: 3px;
  fill: none;
}
.arrow-big-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation-delay: 500ms;
}
.js-active .arrow-big polyline,
.js-active .arrow-big line {
  animation-name: draw;
}
.js-active .arrow-big .arrow-big-line {
  animation-delay: 1500ms;
}
.js-active .arrow-big .arrow-point {
  animation-delay: 2600ms;
}

.arrow-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grafico-section-arrow {
  grid-column: span 5 / span 5;
}
.grafico-section-arrow svg {
  width: 75%;
  margin: 0 auto;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.col-start-1 {
  grid-column-start: 1;
}
.col-start-2 {
  grid-column-start: 2;
}
.col-start-3 {
  grid-column-start: 3;
}
.col-start-4 {
  grid-column-start: 4;
}
.col-start-5 {
  grid-column-start: 5;
}
.row-start-1 {
  grid-row-start: 1;
}
.row-start-2 {
  grid-row-start: 2;
}
.row-start-3 {
  grid-row-start: 3;
}
.row-start-4 {
  grid-row-start: 4;
}
.row-start-5 {
  grid-row-start: 5;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-3 {
  grid-column: span 3 / span 3;
}
.col-span-4 {
  grid-column: span 4 / span 4;
}
.col-span-5 {
  grid-column: span 5 / span 5;
}
/** grafico */

/** form */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 1rem;
  }
}
.row--button {
  margin-top: 4rem;
}
.field {
  position: relative;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 1rem;
}
.field--input {
  padding: 2rem 0 0;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid #999999;
  border-width: 0 0 2px 0;
  border-radius: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  background: transparent;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
}
.field select {
  border-width: 1px 1px 2px;
  appearance: none;
  background: #f0ece7 no-repeat right 1rem center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-size: 16px 12px;
}
.field textarea {
  height: 10rem;
  resize: vertical;
}
.field--select,
.field--textarea {
  margin: 3rem 0 0;
}
.field--privacy {
  margin: 2rem 0 0;
}
.field-label {
  display: block;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
}
.field--input .field-label {
  position: absolute;
  top: 3rem;
  left: 0;
  z-index: 1;
  transition: all 0.2s ease;
}
.js-focus.field--input .field-label {
  top: 0;
  font-size: 1.2rem;
}
.field--textarea .field-label,
.field--privacy .field-label,
.field--select .field-label {
  position: static;
}
.field--privacy .field-label {
  font-weight: 400;
}
.wpcf7-not-valid-tip {
  font-size: 1.4rem;
  margin-top: 0.5rem;
}
.is-white .wpcf7-not-valid-tip {
  color: #ffffff;
}
.is-white .field {
  color: #ffffff;
}
.is-white .field input[type="text"],
.is-white .field input[type="email"],
.is-white .field select,
.is-white .field textarea {
  color: #ffffff;
  border-color: #ffffff;
}
.is-white .field select {
  background-color: #ffffff;
  color: #000;
}
.is-white .field-label {
  color: #ffffff;
}
.is-white .field-label a {
  color: inherit;
}

.wpcf7-response-output {
  margin: 3rem 0 0;
  font-size: 1.6rem;
  line-height: 1.2;
  background: #fff;
  padding: 1rem 1.5rem !important;
}
/** form */


/* ============================================================================
   STILI PER PAGINA DOWNLOAD CON FILTRI
   Design pulito senza sfondi, tutto su una riga, font uniformi
   ============================================================================ */

/* Container filtri - senza sfondo */
.download-filters-container {
    margin-bottom: 30px;
}

.download-filters-form {
    padding: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-family: inherit; /* Usa il font del tema */
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
    font-family: inherit; /* Usa il font del tema */
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Bottoni filtri - sulla stessa riga */
.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-shrink: 0;
}

.filter-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-family: inherit; /* Usa il font del tema */
    white-space: nowrap;
}

.filter-btn-primary {
    background: #007cba;
    color: white;
}

.filter-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.filter-btn-secondary {
    background: #f1f1f1;
    color: #333;
    border: 2px solid #ddd;
}

.filter-btn-secondary:hover {
    background: #e1e1e1;
    text-decoration: none;
    color: #333;
}

/* Contatore risultati - semplice senza sfondo */
.results-counter {
    margin-bottom: 25px;
    padding: 0;
    color: #333;
    font-weight: normal;
    font-family: inherit; /* Usa il font del tema */
    font-size: 16px;
    line-height: 1.5;
}

.active-filters {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Container download - usa le stesse classi di [lista_download] */
.lista-download {
    /* Mantiene tutti gli stili esistenti del tema */
}

.categoria-download {
    /* Mantiene tutti gli stili esistenti del tema */
}

.acf-download {
    /* Mantiene tutti gli stili esistenti del tema */
}

.acf-download_container {
    /* Mantiene tutti gli stili esistenti del tema */
}

.acf-download-title {
    /* Mantiene tutti gli stili esistenti del tema */
}

.acf-download-list {
    /* Mantiene tutti gli stili esistenti del tema */
}

.acf-download-bg {
    /* Mantiene tutti gli stili esistenti del tema */
}

/* Solo gli stili per le meta informazioni extra */
.download-extra-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    font-family: inherit;
}

.download-extra-info strong {
    color: #333;
    font-weight: 600;
}

/* Messaggio nessun risultato */
.no-downloads-container {
    text-align: center;
    margin: 40px 0;
}

.no-downloads-message {
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.6;
    font-family: inherit; /* Usa il font del tema */
}

/* Paginazione */
.download-pagination {
    text-align: center;
    margin-top: 40px;
}

.download-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #031e59;
    transition: all 0.3s ease;
    font-weight: 500;
	font-size: 16px;
    font-family: inherit; /* Usa il font del tema */
}

.download-pagination .page-numbers.current {
	font-weight: 900;
}

.download-pagination .page-numbers.dots {
    display: none;
}

.download-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;   /* ← CAMBIATO QUI */
    align-items: center;    /* ← AGGIUNTO */
    gap: 5px;              /* ← AGGIUNTO */
}

.download-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .filter-buttons {
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .download-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 1px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 16px; /* Previene zoom su iOS */
    }
    
    .results-counter {
        font-size: 14px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Animazioni leggere per le card download */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lista-download .categoria-download {
    animation: fadeInUp 0.4s ease forwards;
}

.lista-download .categoria-download:nth-child(1) { animation-delay: 0.1s; }
.lista-download .categoria-download:nth-child(2) { animation-delay: 0.15s; }
.lista-download .categoria-download:nth-child(3) { animation-delay: 0.2s; }
.lista-download .categoria-download:nth-child(4) { animation-delay: 0.25s; }
.lista-download .categoria-download:nth-child(5) { animation-delay: 0.3s; }
.lista-download .categoria-download:nth-child(6) { animation-delay: 0.35s; }

/* Loading state */
.lista-download.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 124, 186, 0.3);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 16px; /* Previene zoom su iOS */
    }
    
    .download-item-title a {
        font-size: 15px;
    }
    
    .results-counter {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-item {
    animation: fadeInUp 0.6s ease forwards;
}

.download-item:nth-child(1) { animation-delay: 0.1s; }
.download-item:nth-child(2) { animation-delay: 0.2s; }
.download-item:nth-child(3) { animation-delay: 0.3s; }
.download-item:nth-child(4) { animation-delay: 0.4s; }
.download-item:nth-child(5) { animation-delay: 0.5s; }
.download-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.downloads-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 124, 186, 0.3);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#search_download {
	padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.filter-btn-secondary {
    border-radius: 3rem 3rem 3rem 3rem;
    padding: 1rem 3rem 1rem 3rem;
    text-transform: uppercase;
    text-decoration: none!important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1em;
}

/* Altezza uniforme per tutte le card prodotto */
.elementor-532 .elementor-element-0a9af4e,
.template-prodotto.elementor-element-0a9af4e {
    min-height: 550px;
    display: flex !important;
    flex-direction: column !important;
}

/* Limita il testo del sommario a 8 righe SENZA testo visibile sotto */
.elementor-532 .elementor-element-a2a40b6 .elementor-widget-container,
.template-prodotto .elementor-element-a2a40b6 .elementor-widget-container {
    display: -webkit-box !important;
    -webkit-line-clamp: 8 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-grow: 1;
    margin-bottom: 1rem;
    max-height: 11.3em !important; /* Ridotto per tagliare completamente */
    line-height: 1.4em;
    padding-bottom: 0 !important;
}

/* Mantieni l'icona in fondo alla card */
.elementor-532 .elementor-element-04571f6,
.template-prodotto .elementor-element-04571f6 {
    margin-top: auto;
}

@media(max-width: 1024px) {
    .elementor-532 .elementor-element-0a9af4e,
    .template-prodotto.elementor-element-0a9af4e {
        min-height: 400px;
    }
    
    .elementor-532 .elementor-element-a2a40b6 .elementor-widget-container,
    .template-prodotto .elementor-element-a2a40b6 .elementor-widget-container {
        max-height: 10em !important;
    }
}

@media(max-width: 767px) {
    .elementor-532 .elementor-element-0a9af4e,
    .template-prodotto.elementor-element-0a9af4e {
        min-height: auto;
    }
    
    .elementor-532 .elementor-element-a2a40b6 .elementor-widget-container,
    .template-prodotto .elementor-element-a2a40b6 .elementor-widget-container {
        max-height: 11em !important;
    }
}

/* Identazione submenu su mobile */
@media (max-width: 1024px) {
    .elementor-nav-menu .sub-menu .elementor-sub-item {
        padding-left: 30px !important;
    }
}

/* Ingrandisce il testo del calcolo captcha */
.f12-captcha .captcha-calculation {
    font-size: 18px;
    font-weight: 600;
}

/* Ingrandisce la label "Captcha" */
.f12-captcha .c-label {
    font-size: 16px;
    font-weight: 500;
}

/* Ingrandisce il campo di input */
.f12-captcha input.f12c {
    font-size: 16px;
    padding: 8px;
}