@font-face {
    font-family: 'EasyReading';
    src: url('/fonts/EasyReading.woff2') format('woff2'),
         url('/fonts/EasyReading.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

/* Products section */
.products-section {
    padding: 80px 0;
    background-color: white;
}


/* Header styles */
.section-title {
    font-family: 'EasyReadingXB', var(--default-font-family);
    font-size: 28px;
    color: #3f93e2;
    margin-bottom: 30px;
    line-height: 1.6;
}

.section-subtitle {
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 20px;
    color: #3f93e2;
    margin-bottom: 20px;
    line-height: 1.5;
}

.section-note {
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 20px;
    color: #3f93e2;
    margin-bottom: 40px;
}

.down-arrow {
    font-size: 24px;
    color: #3f93e2;
    margin: 30px 0;
}

/* Product cards */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    height: 220px; /* Imposta un'altezza fissa per tutte le immagini */
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene l'immagine intera senza ritagli */
    display: block;
    background: #f8f8f8; /* Sfondo leggero per le immagini */
}

.product-content {
    background: white;
    padding: 25px;
    margin-bottom: -20px;
    position: relative;
    z-index: 2;
    border-bottom-left-radius: 29px;
    border-bottom-right-radius: 29px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    flex-grow: 1; /* Permette al contenuto di crescere per riempire lo spazio */
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 20px;
    color: #3f93e2;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-content p {
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 14px;
    color: #747474;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; /* Fa crescere il paragrafo per occupare lo spazio disponibile */
}

.donation-label {
    background: #e00000;
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 16px;
    font-weight: 700;
    border-bottom-left-radius: 29px;
    border-bottom-right-radius: 29px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Products row */
.products-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact form button */
.contact-form-btn {
    display: inline-block;
    border: 2px solid #3f93e2;
    color: #737373;
    padding: 15px 40px;
    font-family: 'EasyReading', var(--default-font-family);
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-btn:hover {
    background: #3f93e2;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .products-row {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .products-row {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
    }

    .product-card {
        width: 100%;
        max-width: 300px;
    }
}