/*
Theme Name: Aquatic Ecology Lab
Theme URI: https://aquaticecologylabunisalento.cloud/
Author: 2P Web
Author URI: https://www.2pweb.it/
Description: Tema su misura per il Laboratorio BIOforIU (Università del Salento). Sostituisce Elementor, Elementor Pro e Dynamic Content for Elementor con template PHP classici: header, footer, home, dashboard delle location, notizie, schede location e articoli. I contenuti si modificano da Pagine (campi ACF), Aspetto > Personalizza e Aspetto > Menu.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aquatic-lab
*/

/* Misure e colori replicano il sito costruito con Elementor (contenitori 1170/1200 px,
   colonne con 10 px di margine, breakpoint 1024 e 767 px). */

:root {
	--aq-primary: #000;
	--aq-secondary: #5a5756;
	--aq-text: #000;
	--aq-accent: #f0cb00;
	--aq-font: "Titillium Web", sans-serif;
	--aq-sticky-top: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--aq-text);
	font-family: var(--aq-font);
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto !important;
	clip-path: none;
	background: #eee;
	color: #444;
	font-size: 1em;
	line-height: normal;
}

/* ---------- Contenitori (stesso modello a colonne del sito precedente) ---------- */

.aq-con {
	display: flex;
	flex-direction: column;
	padding-inline: 10px;
}

.aq-in {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 1170px;
	margin-inline: auto;
	padding-block: 10px;
}

.aq-con--1200 > .aq-in {
	max-width: 1200px;
}

.aq-con--flush {
	padding-inline: 0;
}

.aq-con--flush > .aq-in {
	padding-block: 0;
}

.aq-box {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.aq-row {
	flex-direction: row;
	gap: 0;
}

.aq-h {
	margin: 0;
	padding: 0;
	color: var(--aq-primary);
	font-weight: 600;
	line-height: 1;
}

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

.aq-header {
	display: contents;
}

.aq-top {
	position: sticky;
	top: var(--aq-sticky-top);
	z-index: 95;
	display: flex;
	flex-direction: column;
	min-height: 100px;
	padding: 0 8%;
	background: #fff;
}

.aq-top__in {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	align-items: stretch;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

.aq-top__logo,
.aq-mh__logo {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	justify-content: center;
	gap: 20px;
	width: 30%;
}

.aq-logo {
	align-self: flex-start;
	max-width: 100%;
	text-align: start;
}

.aq-logo a {
	display: inline-block;
}

.aq-logo img {
	display: inline-block;
	vertical-align: middle;
}

.aq-top .aq-logo img {
	width: 100%;
	height: 80px;
	object-fit: contain;
}

.aq-top__title {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	background-color: #fff;
	background-position: center center;
	background-repeat: no-repeat;
}

.aq-top__name {
	margin: 0;
	padding: 52px 23px 0 0;
	color: var(--aq-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-align: end;
}

.aq-navrow {
	background: #fff;
}

.aq-nav {
	display: flex;
}

.aq-menu {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.aq-menu > li {
	position: relative;
	display: flex;
}

.aq-menu > li:not(:last-child)::after {
	content: "";
	align-self: center;
	height: 35%;
	border-left: 2px solid #000;
}

.aq-menu a {
	position: relative;
	display: flex;
	align-items: center;
	padding: 5px 0;
	color: var(--aq-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.4s;
}

.aq-menu > li:not(:last-child) > a {
	margin-inline-end: 15px;
}

.aq-menu > li:not(:first-child) > a {
	margin-inline-start: 15px;
}

.aq-menu a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: var(--aq-secondary);
	opacity: 0;
	transition: 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}

.aq-menu a:hover,
.aq-menu a:focus {
	color: var(--aq-secondary);
}

.aq-menu a.is-active {
	color: var(--aq-primary);
}

.aq-menu a:hover::after,
.aq-menu a:focus::after,
.aq-menu a.is-active::after {
	opacity: 1;
}

/* ---------- Header tablet e smartphone ---------- */

.aq-mh {
	position: sticky;
	top: var(--aq-sticky-top);
	z-index: 95;
	display: none;
	flex-direction: column;
	min-height: 85px;
	padding: 0 5%;
	background: #fff;
}

.aq-mh__in {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	align-items: stretch;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

.aq-mh__logo {
	width: 25%;
}

.aq-mh .aq-logo img {
	width: 352px;
	height: 75px;
	object-fit: contain;
}

.aq-mh__nav {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 10px;
	background: #fff;
}

.aq-menu--tablet a {
	font-size: 14px;
}

.aq-toggle {
	display: none;
	align-self: flex-end;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.25em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--aq-secondary);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.aq-toggle:hover,
.aq-toggle:focus {
	color: var(--aq-text);
}

.aq-toggle span {
	display: block;
}

.aq-toggle svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aq-toggle .aq-toggle__close,
.aq-mh.is-open .aq-toggle__open {
	display: none;
}

.aq-mh.is-open .aq-toggle__close {
	display: block;
}

.aq-dropdown {
	display: none;
}

.aq-ddmenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aq-ddmenu a {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: #161616;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.aq-ddmenu a:hover,
.aq-ddmenu a:focus {
	background: var(--aq-secondary);
	color: #fff;
}

.aq-ddmenu a.is-active {
	background: #f9fafd;
	color: #fff;
}

@media (max-width: 1024px) {
	.aq-top,
	.aq-navrow {
		display: none;
	}

	.aq-mh {
		display: flex;
	}
}

@media (max-width: 767px) {
	.aq-mh__in {
		flex-wrap: wrap;
	}

	.aq-mh__logo {
		align-items: center;
		width: 50%;
	}

	.aq-mh .aq-logo img {
		height: 80px;
	}

	.aq-mh__nav {
		flex: 0 0 50%;
		width: 50%;
	}

	.aq-nav--tablet {
		display: none;
	}

	.aq-toggle {
		display: flex;
	}

	.aq-dropdown {
		position: absolute;
		top: 76px;
		right: 0;
		left: 0;
		z-index: 9997;
		display: block;
		max-height: 0;
		overflow: hidden;
		border-color: #000;
		border-style: groove;
		border-width: 0 0 1px 5px;
		background: var(--aq-accent);
		transform: scaleY(0);
		transform-origin: top;
		visibility: hidden;
		transition: max-height 0.3s, transform 0.3s, visibility 0s 0.3s;
	}

	.aq-mh.is-open .aq-dropdown {
		max-height: 100vh;
		overflow-y: auto;
		transform: scaleY(1);
		visibility: visible;
		transition: max-height 0.3s, transform 0.3s, visibility 0s;
	}
}

/* La barra di amministrazione sotto i 600 px scorre via con la pagina. */
@media (max-width: 600px) {
	.aq-mh {
		top: 0;
	}
}

/* ---------- Footer ---------- */

.aq-footer__line {
	margin-top: 30px;
}

.aq-divider {
	display: flex;
	padding-block: 2px;
}

.aq-divider span {
	display: flex;
	width: 100%;
	margin: 0 auto;
	border-top: 1px solid #000;
}

.aq-footer__logo {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 33.3333%;
}

.aq-footer__logo .aq-logo {
	align-self: stretch;
}

.aq-footer__logo img {
	width: 73%;
	height: auto;
}

.aq-footer__text {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	gap: 20px;
	width: 66.6666%;
	color: #000;
	font-size: 14px;
	font-weight: 300;
	text-align: end;
}

@media (max-width: 767px) {
	.aq-footer__row {
		flex-wrap: wrap;
	}

	.aq-footer__logo,
	.aq-footer__text {
		width: 100%;
	}
}

/* ---------- Testi ---------- */

.aq-text {
	min-width: 0;
}

.aq-text .alignleft {
	float: left;
	margin: 0.5em 1em 0.5em 0;
}

.aq-text .alignright {
	float: right;
	margin: 0.5em 0 0.5em 1em;
}

.aq-text .aligncenter {
	display: block;
	margin-inline: auto;
}

.aq-text::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Home ---------- */

.aq-home__head {
	margin-top: 30px;
}

.aq-home__title {
	font-size: 24px;
	line-height: 31px;
}

.aq-area {
	width: 33.3%;
}

.aq-area__img {
	text-align: center;
}

.aq-area__img img {
	display: inline-block;
	vertical-align: middle;
}

.aq-area__title {
	font-size: 18.72px;
}

@media (max-width: 767px) {
	.aq-row {
		flex-wrap: wrap;
	}

	.aq-area {
		width: 100%;
	}
}

/* Carosello (4 foto per volta su desktop, 2 su tablet, 1 su smartphone). */

.aq-gallery {
	margin-top: 25px;
}

.aq-car {
	position: relative;
	--aq-spv: 4;
	--aq-idx: 0;
}

.aq-car__vp {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding-bottom: 30px;
	touch-action: pan-y;
}

@media (max-width: 1023px) {
	.aq-car {
		--aq-spv: 2;
	}
}

@media (max-width: 766px) {
	.aq-car {
		--aq-spv: 1;
	}
}

.aq-car__track {
	display: flex;
	transform: translateX(calc(var(--aq-idx) * -100% / var(--aq-spv)));
	transition-property: transform;
	transition-timing-function: ease;
}

.aq-car__slide {
	position: relative;
	flex-shrink: 0;
	width: calc(100% / var(--aq-spv));
	text-align: center;
}

.aq-car__fig {
	margin: 0;
	line-height: inherit;
}

.aq-car__img {
	max-width: 100%;
	height: auto;
	border-color: #fff;
	border-style: solid;
	border-width: 0 5px 0 0;
}

.aq-car__arrow {
	position: absolute;
	top: calc(50% - 15px);
	z-index: 1;
	display: inline-flex;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: hsla(0, 0%, 93%, 0.9);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.aq-car__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aq-car__arrow--prev {
	left: 10px;
}

.aq-car__arrow--next {
	right: 10px;
}

.aq-car__dots {
	position: absolute;
	bottom: 5px;
	left: 0;
	z-index: 10;
	width: 100%;
	text-align: center;
}

.aq-car__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	opacity: 0.2;
	cursor: pointer;
	appearance: none;
	vertical-align: baseline;
}

.aq-car__dot.is-active {
	opacity: 1;
}

/* ---------- Titoli di pagina e briciole ---------- */

.aq-page-head {
	margin-top: 30px;
}

.aq-page-title {
	font-size: 24px;
}

.aq-bc {
	text-align: end;
}

.aq-bc a {
	color: #000;
}

.aq-news-head {
	margin-top: 30px;
	padding: 0;
}

/* ---------- Dashboard: schede e fisarmonica ---------- */

.aq-dash {
	margin-top: 20px;
}

.aq-tabs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	text-align: start;
}

.aq-tabs__head {
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* Il carattere dei pulsanti resta quello del browser, come prima. */
.aq-tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 15px 35px;
	border: none;
	border-radius: 0;
	background-color: #f1f2f3;
	color: var(--aq-secondary);
	user-select: none;
	transition: background 0.3s, color 0.3s;
}

.aq-tab[aria-selected="true"],
.aq-tab[aria-selected="false"]:hover {
	background-color: var(--aq-accent);
	color: #fff;
}

.aq-tab:focus:not(:focus-visible) {
	outline: none;
}

.aq-tab__t {
	display: flex;
	align-items: center;
	font-size: 1rem;
	text-align: center;
}

.aq-tabs__body {
	display: flex;
	flex-grow: 1;
	min-width: 0;
}

.aq-tabs__panel {
	width: 100%;
}

.aq-tabs__panel[hidden] {
	display: none;
}

.aq-dash-acc {
	display: none;
}

.aq-acc__item {
	position: relative;
	display: flex;
	flex-direction: column;
}

.aq-acc__title {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0 10px;
	padding: 10px;
	border: 1px solid #d5d8dc;
	color: #1f2124;
	list-style: none;
	cursor: pointer;
}

.aq-acc__title::-webkit-details-marker {
	display: none;
}

.aq-acc__head {
	display: flex;
}

.aq-acc__text {
	align-items: center;
	font-size: 1rem;
	font-weight: 600;
}

.aq-acc__icon {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	order: -1;
	width: fit-content;
}

.aq-acc__icon span {
	height: 15px;
	width: auto;
}

.aq-acc__icon svg {
	display: block;
	height: 15px;
	fill: var(--aq-accent);
}

.aq-acc__item:not([open]):hover .aq-acc__icon svg,
.aq-acc__item[open] .aq-acc__icon svg {
	fill: #1f2124;
}

.aq-acc__opened,
.aq-acc__item[open] .aq-acc__closed {
	display: none;
}

.aq-acc__closed,
.aq-acc__item[open] .aq-acc__opened {
	display: flex;
}

.aq-acc__body {
	border: 1px solid #d5d8dc;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.aq-tabs {
		display: none;
	}

	.aq-dash-acc {
		display: flex;
	}
}

/* ---------- Griglia e schede (location e notizie) ---------- */

.aq-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(4, 1fr);
	gap: 35px 30px;
	align-items: stretch;
}

.aq-card {
	display: flex;
	flex-direction: column;
}

.aq-card__box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	overflow: hidden;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
	transition: all 0.25s;
}

.aq-card__box:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.aq-card__thumb {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 20px;
}

.aq-card__thumb::after {
	content: "";
	position: absolute;
	bottom: 0;
	display: block;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 75%);
	background-repeat: no-repeat;
	opacity: 1;
	transition: all 0.3s ease-out;
}

.aq-card__box:hover .aq-card__thumb::after {
	opacity: 0.5;
}

.aq-card__img {
	position: relative;
	overflow: hidden;
	padding-bottom: 71%;
	transform-style: preserve-3d;
}

.aq-card__img img {
	position: absolute;
	top: calc(50% + 1px);
	left: calc(50% + 1px);
	display: block;
	width: calc(100% + 1px);
	max-width: none;
	height: auto;
	max-height: none;
	transform: scale(1.01) translate(-50%, -50%);
	transition: filter 0.3s;
}

.aq-card__img.is-fit-h img {
	width: auto;
	height: 100%;
}

.aq-card__badge {
	position: absolute;
	top: 0;
	right: 0;
	margin: 20px;
	padding: 0.6em 1.2em;
	border-radius: 999px;
	background: var(--aq-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

.aq-card__text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
	margin-top: 20px;
	padding: 0 30px;
}

.aq-card__title {
	margin: 0 0 25px;
	color: var(--aq-secondary);
	font-size: 19px;
	font-weight: 600;
}

.aq-card__title a {
	color: inherit;
}

.aq-card__excerpt {
	flex-grow: 1;
	margin-bottom: 25px;
	line-height: 1.7;
}

.aq-card__excerpt p {
	margin: 0;
	color: #777;
	font-size: 14px;
	line-height: 1.5em;
}

.aq-card__excerpt img {
	vertical-align: middle;
}

.aq-card__more {
	display: inline-block;
	margin-bottom: 20px;
	color: #6ec959;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.aq-card__meta {
	margin-top: auto;
	padding: 15px 30px;
	border-top: 1px solid #eaeaea;
	color: #adadad;
	font-size: 12px;
	line-height: 1.3em;
}

.aq-card__upd {
	color: #000;
	font-weight: 700;
}

.aq-card--news .aq-card__excerpt p {
	color: #080808;
}

.aq-card--news .aq-card__more {
	color: #000;
}

.aq-card--news .aq-card__meta {
	color: #000;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.aq-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.aq-grid {
		grid-template-columns: 1fr;
	}

	.aq-card__img {
		padding-bottom: 50%;
	}

	.aq-card__img.is-fit-h img {
		width: calc(100% + 1px);
		height: auto;
	}

	.aq-card__img.is-fit-h-m img {
		width: auto;
		height: 100%;
	}
}

/* ---------- Pagina della location ---------- */

.aq-loc {
	margin-top: 30px;
}

.aq-loc__data {
	text-align: end;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.aq-loc__actions {
	padding-bottom: 20px;
}

.aq-loc__btnw {
	font-size: 19px;
	text-align: center;
}

/* ---------- Singola notizia ---------- */

.aq-post-head {
	margin-top: 40px;
	padding-inline: 8%;
}

.aq-post-head > .aq-in {
	justify-content: center;
	gap: 10px;
	max-width: 970px;
	padding-block: 0;
}

.aq-post-title {
	color: #1c244b;
	font-size: 65px;
	line-height: 1.2em;
	text-align: center;
}

.aq-post-info {
	margin-top: 15px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5em;
	text-align: center;
}

.aq-post-info a {
	color: #1c244b;
}

.aq-post-body {
	padding-inline: 8%;
}

.aq-post-body > .aq-in {
	gap: 50px;
	max-width: 970px;
	padding-block: 0;
}

.aq-post-img {
	text-align: center;
}

.aq-post-img img {
	display: inline-block;
	vertical-align: middle;
}

.aq-post-text {
	font-size: 20px;
	font-weight: 300;
}

@media (max-width: 1024px) {
	.aq-post-head > .aq-in {
		max-width: 620px;
	}

	.aq-post-title {
		font-size: 45px;
	}

	.aq-post-info {
		font-size: 14px;
	}

	.aq-post-body {
		padding-inline: 5%;
	}

	.aq-post-body > .aq-in {
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.aq-post-head > .aq-in {
		max-width: 100%;
	}

	.aq-post-title {
		font-size: 28px;
		line-height: 1.1em;
	}

	.aq-post-body > .aq-in {
		gap: 25px;
	}
}

/* ---------- Archivi ---------- */

.aq-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.aq-pagination a,
.aq-pagination .current {
	color: #000;
}

.aq-pagination .current {
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.aq-car__track,
	.aq-dropdown,
	.aq-card__box,
	.aq-card__thumb::after,
	.aq-menu a,
	.aq-menu a::after,
	.aq-tab {
		transition: none !important;
	}
}
