.lfr-layout-structure-item-container {padding: 0;} .lfr-layout-structure-item-row {overflow: hidden;} .portlet-borderless .portlet-content {padding: 0;}```css
/* =========================================================
   Contenitore generale
   Aggiungi solo la classe "cards-consob" al contenitore Liferay
   che racchiude hero e card
   ========================================================= */


/* =========================================================
   Hero pagina interna
   ========================================================= */

.cards-consob .intestazione-pagine-interne {
  margin-top: 30px !important;
  margin-bottom: 28px !important;
  padding-bottom: 28px !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.cards-consob .intestazione-pagine-interne .row {
  align-items: flex-start !important;
}

.cards-consob .intestazione-pagine-interne .text {
  max-width: 720px !important;
  overflow: visible !important;
}

.cards-consob .intestazione-pagine-interne .title {
  color: #134dce !important;
  font-family: "Playfair Display", serif !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  line-height: 52px !important;
  margin: 0 !important;
}

.cards-consob .intestazione-pagine-interne .desc {
  color: #1e1e1e !important;
  font-family: Inter, sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 27px !important;
  overflow: visible !important;
}

.cards-consob .intestazione-pagine-interne .desc p {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.cards-consob .intestazione-pagine-interne .desc p:last-child {
  margin-bottom: 0 !important;
}


/* =========================================================
   Immagine hero
   Parte all'altezza del paragrafo introduttivo
   e mantiene le proporzioni originali
   ========================================================= */

.cards-consob .intestazione-pagine-interne .immagine {
  position: relative !important;
  margin-top: 74px !important;
  margin-bottom: 24px !important;
}

.cards-consob .intestazione-pagine-interne .immagine > div {
  height: auto !important;
  min-height: 0 !important;

  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
}

.cards-consob .intestazione-pagine-interne .immagine picture {
  display: block !important;
  width: 100% !important;
  max-width: 405px !important;
}

.cards-consob .intestazione-pagine-interne .immagine img {
  display: block !important;
  width: 100% !important;
  max-width: 405px !important;
  height: auto !important;
  border-radius: 14px !important;
}


/* =========================================================
   Immagini card mappate
   Mantiene la card com'è e migliora solo la resa immagine
   Non modifica etichetta data, font, titolo, testo o link
   ========================================================= */

.cards-consob .cards-consob-mappate .card-bianca-wrapper {
  height: auto !important;
  min-height: 100% !important;
}

.cards-consob .cards-consob-mappate .lfr-layout-structure-item-card-bianca,
.cards-consob .cards-consob-mappate .lfr-layout-structure-item-card-bianca > div {
  height: auto !important;
  min-height: 100% !important;
}

.cards-consob .cards-consob-mappate .immagine-con-testo {
  height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
}

.cards-consob .cards-consob-mappate .immagine-con-testo .image,
.cards-consob .cards-consob-mappate .immagine-con-testo .image > div,
.cards-consob .cards-consob-mappate .immagine-con-testo picture {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
}

.cards-consob .cards-consob-mappate .immagine-con-testo img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  max-width: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  image-rendering: auto !important;

  transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;

  filter: none !important;
}

/* Mantiene il corpo card subito sotto l'immagine */
.cards-consob .cards-consob-mappate .card-bianca {
  height: auto !important;
  min-height: 230px !important;
  flex: 1 1 auto !important;
}


/* =========================================================
   Card sezione interna
   ========================================================= */

.cards-consob .card-sezione-interna-senza-data {
  background: #f3f6fb !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  box-shadow: none !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;

  width: 100% !important;
  min-height: 150px !important;
}

.cards-consob .card-sezione-interna-senza-data .title {
  color: #262626 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
}

.cards-consob .card-sezione-interna-senza-data .text {
  color: #4f4f4f !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  letter-spacing: 0 !important;
  flex-grow: 1 !important;
}

.cards-consob .card-sezione-interna-senza-data .link-wrapper {
  border-top: 2px solid #cfd8e6 !important;
  padding-top: 10px !important;
  margin-top: auto !important;

  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
}

.cards-consob .card-sezione-interna-senza-data .consob-link {
  color: #134dce !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;

  margin-left: auto !important;
  text-align: right !important;
}

.cards-consob .card-sezione-interna-senza-data .consob-link:hover {
  text-decoration: underline !important;
}


/* =========================================================
   Fix altezza uguale card
   Utile soprattutto nella vista da utente esterno
   ========================================================= */

.cards-consob .lfr-layout-structure-item-row .row {
  align-items: stretch !important;
}

.cards-consob .lfr-layout-structure-item-row .col {
  display: flex !important;
  flex-direction: column !important;
}

.cards-consob .lfr-layout-structure-item-card-bianca,
.cards-consob .lfr-layout-structure-item-card-bianca > div {
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.cards-consob .lfr-layout-structure-item-card-sezione-interna-no-data,
.cards-consob .lfr-layout-structure-item-card-sezione-interna-no-data > div {
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.cards-consob .lfr-layout-structure-item-card-sezione-interna-no-data .card-sezione-interna-senza-data {
  flex: 1 1 auto !important;
  height: 100% !important;
}


/* =========================================================
   Spaziatura tra righe di card
   ========================================================= */

.cards-consob .lfr-layout-structure-item-row {
  margin-bottom: 12px !important;
}

.cards-consob .lfr-layout-structure-item-grid-same-height {
  margin-bottom: 24px !important;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  .cards-consob .intestazione-pagine-interne {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
  }

  .cards-consob .intestazione-pagine-interne .title {
    font-size: 32px !important;
    line-height: 40px !important;
  }

  .cards-consob .intestazione-pagine-interne .desc {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .cards-consob .intestazione-pagine-interne .immagine {
    margin-top: 24px !important;
    margin-bottom: 20px !important;
  }

  .cards-consob .intestazione-pagine-interne .immagine > div {
    min-height: auto !important;
    justify-content: flex-start !important;
  }

  .cards-consob .intestazione-pagine-interne .immagine picture,
  .cards-consob .intestazione-pagine-interne .immagine img {
    max-width: 100% !important;
  }

  .cards-consob .cards-consob-mappate .immagine-con-testo,
  .cards-consob .cards-consob-mappate .immagine-con-testo .image,
  .cards-consob .cards-consob-mappate .immagine-con-testo .image > div,
  .cards-consob .cards-consob-mappate .immagine-con-testo picture,
  .cards-consob .cards-consob-mappate .immagine-con-testo img {
    height: 200px !important;
    min-height: 200px !important;
  }

  .cards-consob .lfr-layout-structure-item-card-sezione-interna-no-data,
  .cards-consob .lfr-layout-structure-item-card-sezione-interna-no-data > div,
  .cards-consob .card-sezione-interna-senza-data {
    height: auto !important;
    min-height: auto !important;
  }

  .cards-consob .card-sezione-interna-senza-data {
    padding: 18px 20px !important;
  }
}
```

/* 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-90b5a7b1-0c52-9cca-a742-90470600815e {
margin-bottom: var(--spacer-4,1.5rem) !important;
}
