header.wp-block-template-part,
header.wp-block-template-part > .wp-block-group.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff; 
}

.wp-block-button__link.wp-element-button {
  transition: all 0.3s ease;
}

.wp-block-button__link.wp-element-button {
  transition: all 0.3s ease;
}

.wp-block-button__link.wp-element-button {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-button__link.wp-element-button:hover {
  background-color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  border: none;
  transform: none;
}

.wp-block-button__link.has-contrast-color.wp-element-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wp-block-button__link.has-contrast-color.wp-element-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .wp-block-group.alignwide.is-content-justification-space-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  .wp-block-buttons {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin-top: 0.5rem;
    align-items: flex-start !important;
  }

  .wp-block-buttons .wp-block-button {
    width: 100%;
  }

  .wp-block-buttons .wp-block-button a {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit;
    text-decoration: underline;
    font-size: 0.9rem;
    text-align: left;
  }

  .wp-block-buttons .wp-block-button a:hover,
  .wp-block-buttons .wp-block-button a:focus {
    background: none !important;
    text-decoration: underline;
    color: inherit;
  }

  .wp-block-site-title {
    margin-bottom: 0.5rem !important;
  }
}

@media screen and (max-width: 1024px) {
  .wp-block-buttons.wp-container-core-buttons-is-layout-9d0ad828 {
    width: 100% !important;
    padding: 0 !important;
  }

  .wp-block-button.wp-block-button__width-25 {
    width: 100% !important;
  }

  .wp-block-button.wp-block-button__width-25 .wp-block-button__link {
    display: block !important;
    width: 100% !important;
    background: none !important;
    color: #000 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    text-align: center !important;
  }
}

.wp-block-button.wp-block-button__width-25 .wp-block-button__link:hover {
    color: #000 !important; 
    background: #94D1D1 !important; /
}

/* Selecciona exactamente el botón "Scarica la brochure" */
a.wp-block-button__link.wp-element-button.has-contrast-color:hover {
    background-color: #ffffff !important;
    color: #000 !important;
}

#pubblicazioni a.wp-block-button__link.has-background.wp-element-button:hover {
    background-color: #000 !important; 
    color: #fff !important;   
}

#gestione a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;   
}

#prevenzione-incendi a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;   
}

#sicurezza-salute a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;  
}

#docenza a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;   
}

#alta-formazione a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;   
}

#formazione-base  a.wp-block-button__link.wp-element-button:hover {
    background-color: #000 !important;
    color: #fff !important;   
}

@media (max-width: 620px) {
  /* Solo el contenedor específico de estos dos botones */
  .wp-block-buttons.wp-container-core-buttons-is-layout-f6c7b68a {
    flex-direction: column; /* apilar verticalmente */
    gap: 8px;               /* espacio de 8px entre los botones */
  }

  /* Opcional: que cada botón ocupe todo el ancho */
  .wp-block-buttons.wp-container-core-buttons-is-layout-f6c7b68a .wp-block-button {
    width: 100%;
  }
}

.wp-container-core-group-is-layout-095bca42 {
    display: flex !important;        /* asegura que siga siendo flex */
    flex-direction: column !important; /* tu bloque es vertical */
    flex-wrap: nowrap !important;    /* mantiene is-nowrap */
    width: 100% !important;          /* ocupa todo el ancho del padre */
    max-width: 100% !important;      /* elimina limitación de Gutenberg/tema */
    padding-left: 0 !important;      /* opcional: elimina padding */
    padding-right: 0 !important;     /* opcional */
    box-sizing: border-box;          /* evita overflow por padding */
}

.wp-elements-3d19cc140afe3577e58136303188ad5a {
  background-color: #005F6A; /* color del recuadro */
  padding: 8px 16px;         /* espacio alrededor del texto */
  display: inline-block;     /* recuadro ajustado al texto */
}