/* Card del carosello .carouselmio: stessa altezza, stesso allineamento, immagine a tutta larghezza */
.carouselmio .owl-carousel .owl-stage { display: flex; }
.carouselmio .owl-carousel .owl-item { display: flex; flex: 0 0 auto; height: auto; }
.carouselmio .owl-carousel .owl-item > .item { display: flex; flex-direction: column; width: 100%; }
/* <p> vuoti aggiunti da WordPress: erano lo scalino fra la prima card e le altre */
.carouselmio .owl-carousel .item > p:empty { display: none; }
.carouselmio .owl-carousel .item > .et_pb_section { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; box-sizing: border-box; }
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row { flex: 0 0 auto; }
/* Pulsante in fondo alla card */
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row:last-child { flex: 1 1 auto; display: flex; }
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row:last-child > .et_pb_column { display: flex; flex-direction: column; }
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row:last-child .et_pb_button_module_wrapper { margin-top: auto !important; padding-top: 15px; }
/* Immagine: segue i margini negativi impostati nella card, qualunque sia il valore */
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row:first-child .et_pb_text.et_clickable { width: auto !important; max-width: none !important; }
.carouselmio .owl-carousel .item > .et_pb_section > .et_pb_row:first-child .et_pb_text.et_clickable img { display: block; width: 100%; aspect-ratio: 25 / 14; height: auto; object-fit: cover; }

/* Frecce tonde come nel carosello news. Owl le nasconde quando tutte le card sono visibili: con almeno 2 card restano, perché il carosello gira in loop. */
.carouselmio .owl-carousel.owl-theme:has(.owl-item:not(.cloned) ~ .owl-item:not(.cloned)) .owl-nav.disabled { display: block; }
.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-prev,
.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-next {
	position: absolute; top: 200px; transform: translateY(-50%); z-index: 10;
	display: block; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: #f9fafb; color: #235021; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-prev { left: -20px; right: auto; }
.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-next { right: -20px; left: auto; }
.carouselmio .owl-carousel.owl-theme .owl-nav button > * { display: none; }
.carouselmio .owl-carousel.owl-theme .owl-nav button::before {
	content: ""; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4M10 6l-6 6 6 6'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4M10 6l-6 6 6 6'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
}
.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-next::before { transform: scaleX(-1); }
.carouselmio .owl-carousel.owl-theme .owl-nav button:hover,
.carouselmio .owl-carousel.owl-theme .owl-nav button:focus-visible { background: #15a24b; color: #fff; }
/* Tablet e telefono: il carosello arriva al bordo dello schermo */
@media (max-width: 980px) {
	.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-prev { left: 6px; }
	.carouselmio .owl-carousel.owl-theme .owl-nav button.owl-next { right: 6px; }
}
