/*
Theme Name: Twenty Twenty-four Child
Description: Tema child per Twenty Twenty-Four.
Template: twentytwentyfour
Version: 1.3
*/
/* ScrollReveal debug test */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}


.fs-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.fs-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.fs-label {
  margin-bottom: 5px;
  font-weight: 600;
}

.fs-input,
.fs-textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.fs-button-group {
  text-align: center;
}

.fs-button {
  background-color: #00354e;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.fs-button:hover {
  background-color: #1f2e41;
}

/* Column in the section equal height */
.wp-block-columns.equal-height-cols {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch; /* On the column row: forces all columns to be the same height */
    gap: 40px;
}
/*target single columns*/
.wp-block-columns.equal-height-cols > .wp-block-column {
    flex: 1 1 0;
    display: flex;                     /* Each equal-height-cols becomes a vertically flexible column (flex-direction: column) that expands evenly */
    flex-direction: column;           /*ensures that the elements are well distributed*/
    justify-content: space-between; 
}
/* Set images to fit correctly*/
.equal-height-cols img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Fix: keep the wrapping in mobile */ /*The media query on mobile (small screens) the columns stack correctly, keeping the layout responsive.*/
@media (max-width: 768px) {
  .wp-block-columns.equal-height-cols {
    flex-wrap: wrap;       /* Le colonne si dispongono verticalmente */
  }

  .wp-block-columns.equal-height-cols > .wp-block-column {
    width: 100%;           /* Ogni colonna prende tutta la larghezza */
    margin-bottom: 2rem;   /* Spazio tra le colonne impilate */
  }
}