.lfr-layout-structure-item-container {padding: 0;} .lfr-layout-structure-item-row {overflow: hidden;} .portlet-borderless .portlet-content {padding: 0;}
/* Sezione consultazioni - restyling card con fix Firefox e immagini più morbide */

.lfr-layout-structure-item-grid-same-height,
.lfr-layout-structure-item-grid-same-height * {
  box-sizing: border-box;
}

/* Righe e colonne */
.lfr-layout-structure-item-grid-same-height .row {
  align-items: stretch !important;
}

.lfr-layout-structure-item-grid-same-height .row > [class*="col"] {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

/* Neutralizza altezze/larghezze inline di Liferay */
.lfr-layout-structure-item-grid-same-height [class*="lfr-layout-structure-item-card-bianca"],
.lfr-layout-structure-item-grid-same-height [class*="lfr-layout-structure-item-card-sezione-interna-no-data"],
.lfr-layout-structure-item-grid-same-height [id^="fragment-"],
.lfr-layout-structure-item-grid-same-height .card-bianca-wrapper,
.lfr-layout-structure-item-grid-same-height .card.card-bianca,
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Wrapper interni */
.lfr-layout-structure-item-grid-same-height [class*="lfr-layout-structure-item-card-bianca"],
.lfr-layout-structure-item-grid-same-height [class*="lfr-layout-structure-item-card-sezione-interna-no-data"],
.lfr-layout-structure-item-grid-same-height [id^="fragment-"],
.lfr-layout-structure-item-grid-same-height .card-bianca-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* Card con immagine - wrapper generale */
.lfr-layout-structure-item-grid-same-height .card-bianca-wrapper {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(14, 45, 90, 0.08) !important;
  border: 1px solid #e5e9f2 !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

/* Hover card con immagine - senza movimento della card */
.lfr-layout-structure-item-grid-same-height .card-bianca-wrapper:hover {
  box-shadow: 0 12px 26px rgba(14, 45, 90, 0.11) !important;
  border-color: #cfd8ea !important;
}

/* Blocco immagine */
.lfr-layout-structure-item-grid-same-height .immagine-con-testo {
  flex: 0 0 150px !important;
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f3f6fb !important;
}

/* Struttura interna immagine */
.lfr-layout-structure-item-grid-same-height .immagine-con-testo .image,
.lfr-layout-structure-item-grid-same-height .immagine-con-testo .image > div,
.lfr-layout-structure-item-grid-same-height .immagine-con-testo picture,
.lfr-layout-structure-item-grid-same-height .immagine-con-testo img {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
}

/* Immagine: anti-aliasing, scaling morbido e resa migliore su Firefox */
.lfr-layout-structure-item-grid-same-height .immagine-con-testo img {
  object-fit: cover !important;
  position: absolute !important;
  inset: 0 !important;

  transform: translateZ(0) scale(1.01) !important;
  transform-origin: center center !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  image-rendering: auto !important;
  will-change: transform !important;
  transition: transform 0.35s ease !important;
}

/* Etichetta data sulle card della collection */
.lfr-layout-structure-item-grid-same-height .immagine-con-testo .text {
  left: 16px !important;
  bottom: 14px !important;
  transform: none !important;
  max-width: calc(100% - 32px) !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1f2937 !important;
  font-family: Inter, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10) !important;
  z-index: 2 !important;
}

/* Corpo card con immagine */
.lfr-layout-structure-item-grid-same-height .card.card-bianca {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  gap: 10px !important;
  padding: 18px 18px 16px !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

/* Titolo card collection */
.lfr-layout-structure-item-grid-same-height .card.card-bianca .title {
  flex: 0 0 auto !important;
  color: #1f2937 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  letter-spacing: 0.1px !important;
}

/* Testo card collection */
.lfr-layout-structure-item-grid-same-height .card.card-bianca .text {
  flex: 1 1 auto !important;
  color: #4b5563 !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  letter-spacing: 0 !important;
  margin-bottom: 8px !important;
}

.lfr-layout-structure-item-grid-same-height .card.card-bianca .text p {
  margin-bottom: 0 !important;
}

/* Card inferiori senza immagine */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  min-height: 210px !important;
  padding: 22px 22px 18px !important;
  margin-bottom: 0 !important;
  gap: 12px !important;
  border: 1px solid #e5e9f2 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 8px 22px rgba(14, 45, 90, 0.07) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

/* Hover card inferiori - senza movimento */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data:hover {
  box-shadow: 0 12px 26px rgba(14, 45, 90, 0.10) !important;
  border-color: #cfd8ea !important;
}

/* Piccola barra decorativa sulle card inferiori */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #134dce;
  margin-bottom: 2px;
}

/* Titolo card inferiori */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data .title {
  flex: 0 0 auto !important;
  color: #1f2937 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  letter-spacing: 0.1px !important;
}

/* Testo card inferiori */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data .text {
  flex: 1 1 auto !important;
  color: #4b5563 !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 23px !important;
  letter-spacing: 0 !important;
}

/* Link sempre in basso */
.lfr-layout-structure-item-grid-same-height .card .link-wrapper {
  margin-top: auto !important;
  width: 100% !important;
  flex: 0 0 auto !important;
}

/* Link card collection */
.lfr-layout-structure-item-grid-same-height .card.card-bianca .link-wrapper {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 10px !important;
}

/* Link card inferiori */
.lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data .link-wrapper {
  border-top: 1px solid #e5e9f2 !important;
  padding-top: 12px !important;
  display: flex !important;
  align-items: flex-end !important;
}

/* Stile link */
.lfr-layout-structure-item-grid-same-height .consob-link {
  color: #134dce !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  text-decoration: none !important;
}

.lfr-layout-structure-item-grid-same-height .consob-link:hover,
.lfr-layout-structure-item-grid-same-height .consob-link:focus {
  color: #0b3aa0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Fix Firefox per flex annidati */
.lfr-layout-structure-item-grid-same-height .card .title,
.lfr-layout-structure-item-grid-same-height .card .text,
.lfr-layout-structure-item-grid-same-height .card .link-wrapper {
  min-height: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .lfr-layout-structure-item-grid-same-height .row > [class*="col"] {
    margin-bottom: 24px !important;
  }

  .lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data {
    min-height: auto !important;
  }

  .lfr-layout-structure-item-grid-same-height .card-bianca-wrapper,
  .lfr-layout-structure-item-grid-same-height .card.card-sezione-interna-senza-data {
    border-radius: 16px !important;
  }
}
.lfr-layout-structure-item-619a3a74-3260-bc27-f844-a444c9289133 {
margin-bottom: var(--spacer-6,4.5rem) !important;
}
.lfr-layout-structure-item-7d252f5b-c2bb-a32b-9483-6cecede1d5c7 {
margin-top: var(--spacer-5,3rem) !important;
}
.lfr-layout-structure-item-08fe0edc-d722-062d-1326-8fb89fe1e3f3 {
margin-bottom: var(--spacer-4,1.5rem) !important;
}
.lfr-layout-structure-item-53476fbd-b2da-4d49-3227-bc7e446de651 {
margin-bottom: var(--spacer-4,1.5rem) !important;
}
