/* UISP Piemonte - grafica ispirata a uisp.it (Nazionale/Comitati) */

:root {
	--uisp-green: #007f47;
	--uisp-yellow: #ffde01;
	--uisp-dark: #444444;
	--uisp-grey: #777777;
	--uisp-orange: darkorange;
}

body {
	font-family: "Open Sans", sans-serif;
}

/* Site-wide accent color */
a {
	color: var(--uisp-green);
}

.ast-button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background-color: var(--uisp-green);
	border-color: var(--uisp-green);
}

.ast-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: var(--uisp-orange);
	border-color: var(--uisp-orange);
}

/* ---------- Header ---------- */

#uisp-header {
	background: #fff;
}

.uisp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

#uisp-topbar {
	background: #2c2c2c;
}

#uisp-topbar a {
	display: inline-block;
	padding: 7px 0;
	color: #ccc;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.04em;
}

#uisp-topbar a:hover {
	color: #fff;
}

#uisp-brand-row {
	border-bottom: 1px solid #6d6d6d;
	padding: 16px 0;
}

.uisp-brand-flex {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

#uisp-logo img {
	display: block;
	width: 150px;
	height: auto;
}

#uisp-titolo {
	line-height: 1.1;
}

.titolo-piccolo {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: var(--uisp-grey);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.uisp-piemonte-title {
	font-family: "Montserrat", "Open Sans", sans-serif;
	font-weight: 700;
	font-size: 42px;
	color: var(--uisp-grey);
	margin-top: 2px;
}

#uisp-header-search {
	margin-left: auto;
}

#uisp-header-search .search-form {
	display: flex;
}

.uisp-search-form {
	display: flex;
}

.uisp-search-form input[type="search"] {
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 3px 0 0 3px;
	min-width: 180px;
}

.uisp-search-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--uisp-green);
	color: #fff;
	border: none;
	padding: 0 14px;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
}

.uisp-search-form button:hover {
	background: var(--uisp-orange);
}

/* ---------- Main nav (yellow bar) ---------- */

#uisp-main-menu {
	background: var(--uisp-yellow);
}

.uisp-menu-toggle-checkbox {
	display: none;
}

.uisp-menu-toggle-label {
	display: none;
	padding: 12px 16px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	color: #444;
}

.uisp-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.uisp-nav li {
	position: relative;
}

.uisp-nav a {
	display: block;
	padding: 13px 16px;
	color: #444;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 13px;
}

.uisp-nav a:hover,
.uisp-nav a:focus,
.uisp-nav li.current-menu-item > a {
	background: var(--uisp-orange);
	color: #fff;
}

.uisp-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--uisp-dark);
	display: none;
	z-index: 200;
}

.uisp-nav li:hover > ul {
	display: block;
}

.uisp-nav ul a {
	color: #eee;
}

.uisp-nav ul a:hover {
	background: var(--uisp-orange);
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.uisp-brand-flex {
		justify-content: center;
		text-align: center;
	}

	#uisp-logo img {
		width: 110px;
	}

	.uisp-piemonte-title {
		font-size: 28px;
	}

	#uisp-header-search {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.uisp-menu-toggle-label {
		display: block;
		background: var(--uisp-dark);
		color: #fff;
	}

	.uisp-nav {
		display: none;
		flex-direction: column;
	}

	.uisp-menu-toggle-checkbox:checked ~ .uisp-nav {
		display: flex;
	}

	.uisp-nav ul {
		position: static;
		display: block;
		background: rgba(0, 0, 0, 0.15);
	}
}
/* UISP: pulsanti azioni nella sola tabella Società (/area-societa/) – 2026-10-25 */
.swim-society-area > .swim-card:last-child .swim-table td:last-child {
  min-width: 338px;
  width: 338px;
  vertical-align: middle;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > a.swim-button,
.swim-society-area > .swim-card:last-child .swim-table td:last-child > button.swim-button,
.swim-society-area > .swim-card:last-child .swim-table td:last-child > form .swim-button {
  box-sizing: border-box;
  min-height: 43px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  box-shadow: none;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > a[href*="edit_society"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  margin: 0 7px 0 0 !important;
  background: #122542;
  border: 1px solid #122542;
  color: #fff;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > a[href*="doc_society"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  margin: 0 !important;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #122542 !important;
  -webkit-text-fill-color: #122542;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > button[disabled] {
  display: block;
  width: max-content;
  min-width: 135px;
  margin: 8px 0 0 !important;
  opacity: 1 !important;
  background: #8f97a5;
  color: #fff;
  border: 1px solid #8f97a5;
  cursor: not-allowed;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > form:has([name="action"][value="swim_frontend_archive_society"]),
.swim-society-area > .swim-card:last-child .swim-table td:last-child > form:has([name="action"][value="swim_frontend_reactivate_society"]) {
  display: block !important;
  width: max-content;
  margin: 8px 0 0 !important;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > form:has([name="action"][value="swim_frontend_archive_society"]) .swim-button,
.swim-society-area > .swim-card:last-child .swim-table td:last-child > form:has([name="action"][value="swim_frontend_reactivate_society"]) .swim-button {
  min-width: 135px;
}
.swim-society-area > .swim-card:last-child .swim-table td:last-child > a.swim-button:hover:not(:disabled) {
  filter: brightness(.95);
}
@media (max-width: 767px) {
  .swim-society-area > .swim-card:last-child .swim-table td:last-child {
    min-width: 320px;
  }
}

/* Mantiene visibile il testo del pulsante Documenti anche su hover/focus. */
.swim-society-area > .swim-card:last-child .swim-table td:last-child > a[href*=\"doc_society\"]:is(:hover,:focus,:active) { color: #122542 !important; -webkit-text-fill-color: #122542; background: #f1f5f9; }
