/* variables */

@property --bg-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #f1f6fb;
}

@property --evidence-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #40B7BE;
}

@property --banner-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #45858f;
}

@property --gray-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #edf3f3;
}


body {
  background-color: var(--bg-color) !important;
}

/*EU cookie Compliance*/

.eu-cookie-compliance-buttons .decline-button {
  background-color: white;
}

.section-margin {
  margin: 4rem auto;
}

.top-r-rounded img {
  border-radius: 0 4rem 0 4rem;
}

h1 {
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  font-size: 3rem;
}


h3 {
  margin: 0 1rem;
  @media all and (min-width: 780px) {
    margin: 0;
  }
}

/* formatted-text*/

.formatted-text {
  margin: 2rem auto;
}

.formatted-text p {
  margin: 0 1rem 1rem 1rem;
}


.formatted-text a {
  color: var(--evidence-color);
  background-color: whitesmoke;
  padding: 0;
  margin: 0;
}

.formatted-text p.bluebanner {
  padding: 0.5rem 2rem;
}

.formatted-text ul {
  font-style: italic;
  padding: 0 2rem;
  list-style-image: url("/themes/custom/tailwindcss_ena/images/icons/checkmark24.png");
}

li.statistics-counter {
  padding: 0;
  font-size: 0.5rem;
}

li.statistics-counter {

    display: none;

}


/* SECONDARY MENU */

.no-marker::marker {
  display: none;
}

.menu-main ul {
  background-color: var(--bg-color);
  list-style-image: url("/themes/custom/tailwindcss_ena/images/icons/checkmark24.png");

  & li a {
    font-family: "Josefin Sans", sans-serif;
    background-color: var(--bg-color);
  }

  & li {
    font-family: "Josefin Sans", sans-serif;
    background-color: var(--bg-color);
  }

}

.secondary {
  border-top: 1px solid gainsboro;
  background-color: whitesmoke;
  position: fixed;
  bottom: 1px;
  padding: 1rem;
  font-size: 0.875rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  z-index: 10;
}


.language-switcher-language-content-entity {
  font-size: 0.875rem;

  color: #666666;
  @media all and (min-width: 780px) {
    position: unset;
    padding: 0.7em 2px 0 0;
  }
}

/* BREADCRUMB */

div#block-tailwindcss-breadcrumbs {
  margin-top: 3rem;
}

/* BLUEBANNER */

.bluebanner {
  margin-top: 1rem;
  background-color: var(--banner-color);
  padding: 1rem 0;

}

p.bluebanner {
  max-width: 1024px;
  margin: 0 1rem;
  text-align: center;
  color: #eae7df;
  font-size: 1.4rem;
  font-family: "Josefin Sans", sans-serif;
  @media all and (min-width: 780px) {
    margin: 0 auto;
  }
}

h3.bluebanner {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
  font-family: Josefin Sans, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.625;
  color: #eae7df;
}

/* CONTACT */

#block-tailwindcss-contactblock form label {
  display: none;
}

#block-tailwindcss-contactblock form input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 17rem;
}

input#edit-field-accept-value {
  width: 1rem !important;
}

div#edit-field-accept-value--description {
  color: white;
  width: 16rem;
  margin-left: 1.8rem;
}


form.contact-message-contactame-form label {
  display: none;
}

form.contact-message-contactame-form input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 20rem;
}

form.contact-message-contactame-form .form-item-field-telefono-0-phone input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 20rem;
}

.contact-page h1 {
  color: white;
  text-align: left !important;
  margin-left: 1rem;
}

/* FLEX VIEWS */

.flex-views {
  margin: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;


  @media all and (min-width: 768px) {
    border: none;
    gap: 1rem;
    flex-direction: row;
    margin: 2rem auto;
    justify-content: right;
    &.even-row-class {
      flex-direction: row-reverse;
    }
  }

}

.odd-row-class .views-field-fieldset, .odd-row-class .views-field-fieldset-1 {
  display: block;
  position: relative;
  background-color: white;
  max-height: 35rem;
  @media all and (min-width: 768px) {
    padding: 1rem;
    width: 70%;
    border-radius: 0 2rem 0 0;
  }

  &.views-field-view-node {
    background-color: white;
  }
}

.even-row-class .views-field-fieldset, .even-row-class .views-field-fieldset-1 {
  display: block;
  position: relative;
  background-color: white;
  max-height: 35rem;
  @media all and (min-width: 768px) {
    padding: 1rem;
    width: 70%;
    border-radius: 2rem 0 0 0;
    border: 1px solid var(--gray-color);
  }
}

/*
.even-row-class .views-field-view-node {
  width: 10rem;
  padding: 1rem;
  background-color: var(--gray-color);
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: Josefin Sans, sans-serif;
  text-align: center;
}
*/

.even-row-class .views-field-view-node {
  width: 7rem;
  padding: 0.2rem;
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: Josefin Sans, sans-serif;
  color: white;
  text-align: center;
  background-color: var(--banner-color);
  font-size: 0.8rem;
  border: 1px solid orange;
  border-radius: 20px;
  margin: 1rem 0.3rem 1rem 0;
  @media all and (min-width: 768px) {
    padding: 1rem;
    background-color: var(--gray-color);
    font-size: 1rem;
    width: 10rem;
    color: black;
    border: none;
    border-radius: 0;
    margin: 0;
  }
}


.odd-row-class .views-field-view-node {
  width: 7rem;
  padding: 0.2rem;
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: Josefin Sans, sans-serif;
  color: white;
  text-align: center;
  background-color: var(--banner-color);
  font-size: 0.8rem;
  border: 1px solid orange;
  border-radius: 20px;
  margin: 1rem 0.3rem 1rem 0;
  @media all and (min-width: 768px) {
    padding: 1rem;
    background-color: var(--gray-color);
    font-size: 1rem;
    width: 10rem;
    color: black;
    border: none;
    border-radius: 0;
    margin: 0;
  }
}


/*.flex-views .views-field-field-media-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  @media all and (min-width: 780px) {
    width: 60%;
  }
}*/


.flex-views .views-field-field-cover, .flex-views .views-field-field-media-image {
  max-height: 35rem;
  box-shadow: none;
  text-align: -webkit-center;
  /*background-color: var(--gray-color);*/
  border-radius: 2rem 2rem 0 0;

  /*padding: 1rem 0;*/
  @media all and (min-width: 768px) {
    width: 30%;
    border-radius: unset;

  }
}

.views-field-field-cover .field-content img, .views-field-field-media-image .field-content img {
  width: 100%;
  object-fit: cover; /* This helps to preserve the aspect ratio */
  object-position: top;
  height: revert-layer;
  border-radius: 2rem 2rem 0 0;
}

@media all and (min-width: 768px) {
  .even-row-class img {
    border-radius: 0 0 3rem 0 !important;
  }

  .odd-row-class img {
    border-radius: 0 0 0 3rem !important;
  }
}

.flex-views .views-field-title {
  font-size: 1.5rem;
  /*font-weight: bold;*/
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  text-align: center;
  border-bottom: 1px solid gray;
  /*margin-bottom: 1rem;*/
  font-variant-caps: all-petite-caps;
  line-height: 1.7rem;
  padding: 0.3rem 0;
  @media all and (min-width: 768px) {
    /*margin: 1rem 0;*/
    border: none;
    font-variant-caps: unset;
    line-height: unset;
  }
}

.flex-views .views-field-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 10rem;
}

@media all and (max-width: 768px) {
  .flex-views .views-field-body {
    padding: 3px;
    height: 2rem;
    width: 11rem;
    line-height: 1rem;
    margin: 1rem 0 1rem 0.3rem;
    color: #777777;
  }
}


.flex-views .views-field-body p {
  display: none;
  @media all and (min-width: 768px) {
    display: block;
    font-size: 1rem;
    line-height: 2rem;
  }
}

@media all and (max-width: 768px) {
  .flex-views .views-field-body h2 {
    font-size: 1rem !important;
    text-align: left;
    font-variant-caps: petite-caps;
  }
}

.flex-views .views-field-field-event-date-show {
  font-size: 3rem;
  color: var(--banner-color);
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  text-align: center;
}

@media all and (max-width: 768px) {
  .flex-views .views-field-field-event-date-show {
    padding: 3px;
    height: 2rem;
    width: 11rem;
    line-height: 1rem;
    margin: 1rem 0 1rem 0.3rem;
    color: #777777;
    font-size: 1rem;
    text-align: left;
  }
}


/* FLEX GALLERY */
.flex-gallery {
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  max-width: 320px;

  @media all and (min-width: 768px) {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1240px;
  }
}

.flex-gallery .views-field-field-media-image {
  width: 60%;
  height: auto;
  margin: 0 auto;
}

/* IMAGES GALLERY */
.img-gallery img {
  width: 320px !important;
  max-width: unset;
  height: 450px;
  object-fit: cover;
  margin: 1rem auto;
  padding: 1rem;
  box-shadow: 20px 19px 25px 4px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
  border-radius: 0 0 6rem 0;
  border: 3px solid var(--evidence-color);
  @media all and (min-width: 720px) {
    width: 320px;
  }
}

.img-show {
  height: 30rem;
  max-width: 20rem;
  object-fit: cover;
}

/* MEDIA REMOTE*/
.media-oembed-content {
  max-width: 100%;
  margin: 2rem auto;
}

/* DRUPAL MEDIA */
div[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

img[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* guida */
.guida {
  background-color: whitesmoke;
  border: 1px solid gainsboro;
  padding-bottom: 2rem;

  & p {
    font-style: italic;
    font-size: 0.8rem;
  }
}

/* Footer */

#block-tailwindcss-footer img {
  width: 128px;
  height: auto;
  margin: 0 auto;
  @media all and (min-width: 780px) {
    width: 128px;
  }
}

.views-element-container footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.views-element-container footer button {
  cursor: pointer;
  color: white;
  background-color: var(--banner-color);
  padding: 0.5rem 1.5rem;
  width: 6rem;
  margin: 0 auto 2rem auto;
  border-radius: 0.6rem;

  &:hover {
    background-color: var(--evidence-color);
  }
}

/* CONTENT */

.btn-eta {
  cursor: pointer;
  color: white;
  background-color: var(--banner-color);
  padding: 0.5rem 1.5rem;
  width: 19rem;
  margin: 0 auto 2rem auto;
  border-radius: 0.6rem;
  @media all and (min-width: 720px) {
    width: 25rem;
  }

  &:hover {
    background-color: var(--evidence-color);
  }
}

.node-content {
  margin: 2rem auto;

  & ul {
    font-style: italic;
    list-style-image: url("/themes/custom/tailwindcss_ena/images/icons/checkmark24.png");
    @media all and (min-width: 768px) {
      padding: 0 2rem;
    }

    & li {
      margin: 0.4rem auto;
    }
  }

  & h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--banner-color);
    border-bottom: 1px solid whitesmoke;
  }
}

.media-center {
  width: 320px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  overflow: hidden;
  @media all and (min-width: 780px) {
    width: fit-content;
  }
}


/* TAO LIST */

.list-box {
  background-color: #fff3e4;
  padding: 1rem;
  border-radius: 2rem;
}


.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.tao-list ul,
ul.tao-list {
  list-style: none;
}

ul.tao-list {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 2rem 0;
}

ul.tao-list li {
  color: white;
}

.tao-list ul li::before {
  content: '\e7cd';
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  margin-right: 10px;
  color: #45858f;
}

ul.tao-list li::before {
  content: '\e7cd';
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  margin-right: 10px;
  color: white;
}

.wp-block-quote {
  border-left: none;
}

/* blog list */

.terapia, .blog {
  ul {
    list-style: none;
    max-width: 1024px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff3e4;
    border-radius: 2rem;
  }

  ul li::before {
    content: '\e7cd';
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    margin-right: 10px;
    color: #45858f;
  }

  ul li::before {
    content: '\e7cd';
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    margin-right: 10px;
    color: #45858f;
  }

  ol li {
    list-style-type: number;
  }
  ol ol {
    list-style-type: disc; /* Cambia i numeri in bullet */
    margin-left: 20px; /* Indenta le voci figlie */
  }

  ol ol li {
    list-style-type: circle;
    counter-reset: list; /* Disattiva ulteriori contatori per i figli */
  }
}

.event {
  ul {
    list-style: none;
    max-width: 1024px;
    padding: 2rem;
    border-radius: 2rem;
  }

  ul li::before {
    content: '\e7cd';
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    margin-right: 10px;
    color: #45858f;
  }

  ul li::before {
    content: '\e7cd';
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    margin-right: 10px;
    color: #45858f;
  }
}

.blog.events {
  border: 2px solid #c49d48;
  border-radius: 10px;
  padding: 2rem;
  background-image: url("/themes/custom/tailwindcss_ena/images/MosaicoBGoriginal.png");
  background-blend-mode: soft-light;
  background-color: #ffffffe0;
}

.blog.events h3, .openday h3 {
  background-color: #c49d48;
  font-size: 1.5rem;
  padding: 1rem;
  border: 1px solid #c49d48;
  border-radius: 0.6rem;
  margin: 1rem 20%;
  color: white;
}

.blog.events p strong {
  color: green;
}

.blog.events h5, .openday h5 {
  font-size: 2rem;
  color: #45858f;
}

.blog.events img {
  text-align: center;
}

.openday {
  flex-direction: column;
  @media all and (min-width: 780px) {
    flex-direction: row;
  }
}


.openday .col-a {
  @media all and (min-width: 780px) {
    width: 33.3333%;
  }
}

.openday .col-b {
  @media all and (min-width: 780px) {
    width: 66.6666%;
  }
  background-image: url("/themes/custom/tailwindcss_ena/images/MosaicoBGoriginal.png");
  background-blend-mode: soft-light;
  background-color: #ffffffe0;
  padding-top: 5rem;
  padding-bottom: 2rem;

}


/* CAPTCHA MATH (provisional */
fieldset.captcha.captcha-type-challenge--math {
  color: white;
  margin: 0 2rem;

  & .form-item {
    width: 10rem;
  }

  & input {
    width: 10rem;
    color: black;
  }
}

fieldset.captcha.captcha-type-challenge--recaptcha {
  margin-left: 1rem;

  & legend.captcha__title.js-form-required.form-required {
    color: white;
  }

  & .captcha__description {
    position: relative;
    left: 0;
    color: white;
    width: 18rem;
  }
}

/* USER LOGIN*/
.user-login-form fieldset.captcha {
  margin-left: 0;
}

.user-login-form fieldset legend.captcha__title,
.user-login-form .captcha__description {
  color: black !important;
}

.align-center {
  width: fit-content;
}

.max-w-96 {
  max-width: 384px;
}

/* MASONRY */
.masonry-layout-gallery-landing {
  width: 285px;
  margin: 0 auto;
  @media all and (min-width: 780px) {
    width: 950px;
  }
}

.masonry-layout-gallery-landing .grid-item {
  margin: 5px 0;
}

/* EVENTS LISTS*/

.eventslist {
  border-bottom: 1px solid lightgray;
  margin-bottom: 1rem;
}
.eventslist .views-field-title {
  font-weight: bold;
  margin-right: 1rem;
}

.eventslist .views-field-field-eventcover {
  padding: 1rem;
  width: 7rem;
}
.eventslist .views-field-field-special {
  font-size: 1.2rem;
  background-color: #26a769;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  margin-right: 0.5rem;
}

/*#block-tailwindcss-views-block-events-list-block-1 h2{*/
/*  text-align: center;*/
/*  font-size: 1.5rem;*/
/*  padding: 1rem;*/
/*  margin: 1rem 0;*/
/*  background-color: #45858f;*/
/*  color: white;*/
/*}*/
/*.terapias.views-row {*/
/*  width: 320px;*/
/*}*/
/*.terapias-sticky {*/
/*  background-color: #fff3e4;*/
/*  border: 1px solid #c49d48;*/
/*  border-radius: 10px;*/
/*  padding: 2rem;*/
/*  margin: 2rem auto;*/
/*  max-width: 1024px;*/
/*}*/
/*.terapia-cover img{*/
/*  border-top-right-radius: 96px;*/
/*  border-bottom-left-radius: 96px;*/
/*  display: block; !* Per l'allineamento centrale *!*/
/*  margin: 0 auto; !* Centra l'elemento orizzontalmente *!*/
/*  height: 17rem; !* Basato sulla classe img-show *!*/
/*  max-width: 20rem; !* Basato sulla classe img-show *!*/
/*  object-fit: cover; !* Basato sulla classe img-show *!*/

/*}*/

/* Sezione Hero per Terapie Speciali */
.terapias-hero-section {
  position: relative;
  background: linear-gradient(135deg, #fefefe 0%, #fdfdfd 25%, #fcfcfc 50%, #fbfbfb 75%, #fafafa 100%);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Cards Speciali */
.terapias-hero-card .views-field-title h3 {
  background: linear-gradient(135deg, var(--banner-color), var(--evidence-color));
  color: white;
  margin: 0;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-variant: all-small-caps;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.terapias-hero-card .views-field-title h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.terapias-hero-card:hover .views-field-title h3::before {
  left: 100%;
}

.terapias-hero-card:hover .views-field-title h3 {
  background: linear-gradient(135deg, var(--evidence-color), #22d3ee);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.terapias-hero-card .terapia-cover {
  position: relative;
  overflow: hidden;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
}

.terapias-hero-card .terapia-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(1.05) contrast(1.1);
}

.terapias-hero-card:hover .terapia-cover img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.1) contrast(1.15);
}

/* Overlay speciale per hero cards */
.terapias-hero-card .terapia-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(64, 183, 190, 0.1), rgba(69, 133, 143, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.terapias-hero-card:hover .terapia-cover::after {
  opacity: 1;
}

/* Bordo dorato per le hero cards */
.terapias-hero-card > div {
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
  linear-gradient(135deg, var(--evidence-color), var(--banner-color)) border-box;
  position: relative;
}

.terapias-hero-card:hover > div {
  border-image: linear-gradient(135deg, #fbbf24, #f59e0b) 1;
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  from {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  }
  to {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
  }
}

/* Badge "Speciale" per hero cards */
.terapias-hero-card::before {
  content: '★';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive per hero section */
@media (max-width: 768px) {
  .terapias-hero-card .views-field-title h3 {
    font-size: 1.25rem;
    min-height: 4rem;
    padding: 1rem;
  }

  .terapias-hero-card .terapia-cover {
    height: 450px;
  }

  .terapias-hero-section {
    padding: 2rem 1rem;
  }
}

/* Separatore tra sezioni */
.terapias-hero-section + div {
  position: relative;
}

.terapias-hero-section + div::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--banner-color), var(--evidence-color));
  border-radius: 2px;
}

/* Miglioramenti per le ombre */
.terapias-hero-card > div {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.terapias-hero-card:hover > div {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(64, 183, 190, 0.15),
    0 0 0 1px rgba(64, 183, 190, 0.1);
}

/* Stili per le card delle terapie */
.terapias.views-row .views-field-title h3 {
  background: linear-gradient(135deg, var(--banner-color), var(--evidence-color));
  color: white;
  margin: 0;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-variant: all-small-caps;
}

.terapias.views-row:hover .views-field-title h3 {
  background: linear-gradient(135deg, var(--evidence-color), var(--banner-color));
  transform: translateY(-2px);
}

.terapia-cover {
  position: relative;
  margin: -0.3rem;
  overflow: hidden;
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terapia-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.terapias.views-row:hover .terapia-cover img {
  transform: scale(1.05);
}

/* Overlay per le immagini */
.terapia-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.terapias.views-row:hover .terapia-cover::after {
  background: rgba(0, 0, 0, 0.1);
}

/* Animazioni e effetti hover */
.terapias.views-row {
  transition: all 0.3s ease;
}

.terapias.views-row:hover {
  transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .terapias.views-row .views-field-title h3 {
    font-size: 1rem;
    min-height: 3.5rem;
    padding: 0.75rem;
  }

  .terapia-cover {
    height: 180px;
  }
}

/* Aggiungi questi al file CSS esistente */

/* Loading skeleton per le immagini */
.terapia-cover img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge per categorie o tag (se necessario) */
.terapia-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--evidence-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

/* Miglioramenti per l'accessibilità */
.terapias.views-row a:focus {
  outline: 2px solid var(--evidence-color);
  outline-offset: 2px;
}

/* Effetto blur su hover per il background */
.terapias.views-row:hover {
  backdrop-filter: blur(1px);
}
