/* Stili del sito provvisorio (form, mappa su richiesta, piccoli fix) */

/* ---- Form ---- */
.aq-form { margin: 0 auto; width: 100%; }
.aq-form label { display: block; margin-bottom: 4px; font-weight: 400; }
.aq-form input[type="text"],
.aq-form input[type="email"],
.aq-form input[type="tel"],
.aq-form input[type="file"],
.aq-form select,
.aq-form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	box-sizing: border-box;
	font: inherit;
}
.aq-form input:focus,
.aq-form select:focus,
.aq-form textarea:focus { border-color: #888; outline: 2px solid rgba(202, 0, 2, .25); }
.aq-form [aria-invalid="true"] { border-color: #ca0002; }
.aq-form .aq-check { display: flex; gap: 8px; align-items: flex-start; }
.aq-form .aq-check input { margin-top: 4px; flex: none; }
.aq-submit {
	float: right;
	background: #ca0002;
	color: #fff;
	text-transform: uppercase;
	border: none;
	padding: 8px 20px;
	cursor: pointer;
	font: inherit;
}
.aq-submit:hover { background: #ff0000; }
.aq-submit[disabled] { opacity: .6; cursor: wait; }

/* honeypot: fuori schermo, non display:none (alcuni bot lo ignorano) */
.aq-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.aq-esito { margin-bottom: 10px; font-size: 14px; }
.aq-esito:empty { display: none; }
.aq-esito.aq-ok { padding: 8px; background: #59a80f; color: #fff; }
.aq-esito.aq-errore { padding: 8px; background: #ff0000; color: #fff; }
.aq-esito ul { margin: 4px 0 0 18px; }

.aq-note { font-size: .9em; font-style: italic; }

/* ---- Mappa caricata solo su richiesta ---- */
.aq-map {
	position: relative;
	width: 90%;
	height: 500px;
	margin: 0 auto;
	background: #eef0f2 url("/assets/site/mappa-placeholder.svg") center / cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aq-map-consenso {
	max-width: 560px;
	margin: 16px;
	padding: 20px 24px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	text-align: center;
}
.aq-map-consenso .aq-submit { float: none; margin-right: 12px; }
.aq-map iframe { width: 100%; height: 100%; border: 0; }
@media only screen and (max-width: 47.99em) {
	.aq-map { width: 100%; height: 420px; }
}

/* ---- Footer: dati societari a sinistra, i tre documenti in colonna a destra ----
   Selettori con ".credits .widget" per prevalere sulle regole del tema
   (es. ".credits .widget li { display:inline-block }", ".responsive-design .credits .widget { display:block }"). */
.credits .widget.aq-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 48px;
	float: none;
	color: #fff;
}
.credits .aq-footer p { margin: 0; color: #fff; }
.credits .aq-footer-societa { flex: 1 1 auto; }
.credits .aq-footer-link { flex: 0 0 auto; text-align: right; }
.credits .aq-footer-link ul { list-style: none; margin: 0; padding: 0; }
.credits .widget .aq-footer-link li { display: block; margin: 0 0 6px; padding: 0; }
.credits .aq-footer-link a { color: #fff; text-decoration: none; }
.credits .aq-footer-link a:hover,
.credits .aq-footer-link a:focus { text-decoration: underline; }
@media only screen and (max-width: 47.99em) {
	.credits .widget.aq-footer { flex-direction: column; }
	.credits .aq-footer-link { text-align: left; }
}

/* ---- Pagina "Politica del sistema di gestione" ---- */
/* menu con le sezioni del documento: più voci della home, quindi spaziatura ridotta
   (!important perché custom.css del tema impone ".inner { padding: 1.5em 2em !important }") */
.nav-main .aq-menu-documento > li > a.inner { padding-left: .9em !important; padding-right: .9em !important; }
/* le ancore non finiscono sotto l'header fisso */
.aq-politica h2[id] { scroll-margin-top: 110px; }
