/* Stili solo per questo tipo di paragrafo */
.paragraph--type--allegato-con-copertina .allegato-card {
  position: relative;
  display: inline-block;           /* mantiene la dimensione dell'immagine */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.paragraph--type--allegato-con-copertina .allegato-card .image-field,
.paragraph--type--allegato-con-copertina .allegato-card img {
  display: block;
  width: 100%;                     /* opzionale: rende responsive se la wrapper è fluida */
  height: auto;
}

/* Leggera velatura on hover per staccare il bottone */
.paragraph--type--allegato-con-copertina .allegato-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(15 109 132 / 27%);
  opacity: 0;
  transition: opacity .2s ease;
}
.paragraph--type--allegato-con-copertina .allegato-card:hover::after,
.paragraph--type--allegato-con-copertina .allegato-card:focus-visible::after {
  opacity: 1;
}

/* Bottone centrale */
.paragraph--type--allegato-con-copertina .allegato-cta {
	display: block;
	width: 100%;
	margin: auto;
	margin-top: 0.6rem;
  padding: .6rem 1rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-align: center;
  max-width: 90%;
  word-wrap: break-word;
}
.allegati-con-copertine {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
}
h1{
	display: none;
}
#scuoleFrontImg  {
	float: right;
    width: 330px;
    max-width: 330px;
    min-width: 200px;
    height: 330px;
    max-height: 330px;
    min-height: 200px;
    border-radius: 50%;
    margin: 1rem 0;
    margin-left: 1rem;
    overflow: hidden;
}
#scuoleFrontImg {
	float: left;
	margin-right: 2rem;
}
#scuoleFrontImg  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    
}
@media screen and (max-width: 800px){
	#scuoleFrontImg{
		width: 250px;
		height: 250px;
	}
	.allegati-con-copertine {
    justify-content: center;
    gap: 1rem
	}
	
	h3 {
	    text-align: center;
	}
}
@media screen and (max-width: 600px){
	#scuoleFrontImg{
		display: none;
	}
}