Introduction

Freshwater importance is undoubtful, given its dual role as a key resource to human populations and habitat to several species (EEA, 2019). As ecosystem holders, freshwaters are estimated to support ca. 40% of global biodiversity and 25% of vertebrate species (Dudgeon et al., 2006). Furthermore, biodiversity is a regulator of ecosystem services, a service itself and a valuable good for humans (Mace et al., 2012). Hence, ensuring biodiverse freshwater ecosystems is crucial to the maintenance of their health and value. In this context, the EU Water Framework Directive (WFD; Directive 2000/06/EC) has assumed a crucial role in Europe since its implementation in 2000. The aim of this piece of legislation and further complementary policies is to follow an integrated ecosystem-based approach in water management, putting the spotlight on ecological status. In fact, the greatest novelty brought by the WFD was the inclusion of an ecological line of evidence in the evaluation of water bodies that formerly was almost exclusively based on chemical monitoring. Two decades after the implementation of the WFD, this ecocentric perspective is now additionally boosted by the European Union (EU) Biodiversity Strategy for 2030 (a part of the European Green Deal) and aligned with the United Nations (UN) Sustainable Development Goals.

One of the biological descriptors within the WFD assessment scheme is the benthic macroinvertebrate community that is amongst the most consolidated biological descriptors or indicators in the WFD bioassessment scheme for riverine ecosystems. The advantages of macroinvertebrates in this context have been highlighted in the literature (e.g. Hellawell, 1986; Metcalfe-Smith, 1994; Chapman & Jackson, 1996; Birk et al., 2012; Pawlowski et al., 2018): (i) the aquatic phase of their life cycle (generally close to or larger than 1 year) is long enough to reflect precedent disturbances in the ecosystem; (ii) the communities usually need long post-disturbance recolonization periods, and therefore, their composition and structure reflects past/historic events; (iii) the high diversity of quantitative metrics available for these specific communities allows the extraction of information about ecological status in different conditions. Therefore, benthic macroinvertebrates are overall well suited to signal disturbances in riverine ecosystems. However, criticisms to the current WFD bioassessment scheme based on macroinvertebrate metrics (e.g. Ramos-Merchante & Prenda, 2017; Carvalho et al., 2019; Santos et al., 2021) have been highlighting the need to fully grasp their sensitivity to disturbances that involve the interplay of anthropogenic and natural contributions, and especially those potentiated by climate change (e.g. hydrological fluctuations, habitat alterations).

According to the SOER 2020 report (EEA, 2019), the main disturbances impacting bioindicators (such as macroinvertebrate communities), and therefore leading to worse ecological statuses of freshwater ecosystems, include hydrological pressures, excessive water abstraction, and the presence of diffuse pollution. Hydrological changes often cause additional indirect effects, such as physical alteration of river channels or the riparian zone, which can jeopardize the ecological evaluation by having a negative impact on aquatic invertebrate communities (EEA, 2019). Hydrological pressures relating to water scarcity generate particular concern in regions under Mediterranean influence, where the occurrence of droughts is not only common but also expected to increase in severity and length under climate change scenarios (IPCC, 2014). These circumstances have been leading to a shift in some rivers from a perennial to an intermittent character. The intermittency of rivers gains particular relevance if extending the context to diffuse pollution threats, as the capacity of diluting contamination decreases through drought periods when flow dramatically decreases (Stubbington et al., 2017) and salinization of freshwaters increases (Cañedo-Argüelles et al., 2013, 2020). Concerning Mediterranean countries, specific macroinvertebrate-based metrics have been developed to accommodate this river type specificities, by incorporating biotic indices that consider sensitive taxa occurring in intermittent or temporary rivers (Munné & Prat, 2009; Feio et al., 2014a, b).

In fact, disturbances to riverine ecosystem health converge to a multiple stressor framework (Ormerod et al., 2010; Carpenter et al., 2011; Reid et al., 2019), where interactions between stressors tend to be very relevant (Côté et al., 2016; Birk et al., 2020). In this multiple stressor context, there is a need to understand biodiversity patterns across environmental gradients and the ability of monitoring tools (such as the WFD bioassessment scheme) to discern between anthropogenic and natural influences, to properly identify threats to freshwater biodiversity and impacts on ecosystem health. In the Mediterranean region, this must be necessarily framed with climate change and its consequences (prolonged droughts, intermittency of rivers), which will directly and indirectly shape regional (hydromorphological and ecological) features of riverine ecosystems, as well as local human pressures. This is the context of the present study, which looked at macroinvertebrate communities across hydrological and climate regimes in a set of Portuguese streams in 2019. This case study is of particular interest, because a water availability gradient can be found along the Iberian Peninsula (Carvalho et al., 2011; Biurrun et al., 2016), associated with typical regional precipitation and temperature regimes. In the last two decades, the frequency of warmer and dryer years in Portugal has been increasing (public data from the Portuguese Institute for Sea and Atmosphere—IPMA), but the 2017–2020 period was highly variable; 2017 was extremely dry and hot, whereas 2018 and 2019 were closer to the norm (1971–2000 period), with drought conditions aggravating again in 2020. This results in heterogeneous pressures and accumulated hydric stress in the most vulnerable regions.

The main aim of this study was to compare the macroinvertebrate community structure and ecological status of streams from three Portuguese regions, representing distinct climatic features and water availability scenarios, along a gradient of water scarcity. To do so, 28 sampling sites were surveyed in a total of 16 streams and six hydrographic basins in the Spring of 2019. Sampling sites were selected to reflect regional and local natural heterogeneity in terms of land use (precluding highly disturbed locations), while reflecting a common set of features (comparable ecological background). It is expected that this study provides important insights on how climatic, hydromorphological, and physical and chemical contexts are reflected in the structure and bioindicator value (ecological status sensu WFD) of the macroinvertebrate communities.

Methodology

Study areas and sampling strategy

Portugal is part of the Iberian Peninsula, which is dominated by sclerophyllous vegetation adapted to the dry Mediterranean-type climate; in regions where precipitation compensates for the typical dry climate, mixed or deciduous forests can occur (Gavilán et al., 2018). This study contemplated three regions in Portugal along a gradient of Mediterranean features (Carvalho et al., 2011; Biurrun et al., 2016), each one of them presenting different topographic and climate characteristics (Fig. 1). Region C (Littoral Centre) presents Cantabrian mixed forests in northern sampling sites and Southwest Iberian Mediterranean sclerophyllous and mixed forests in southern sampling sites; climate is temperate with rainy winters along with dry and not very hot summers—type Csb, according to Köppen-Geiger classification system (Beck et al., 2018; IPMA, 2021). Among the studied regions, it is the one with milder summers (i.e. less dry), and therefore, less prone to water scarcity. Region N (North-Eastern Portugal) is characterised by the presence of Iberian sclerophyllous and semi-deciduous forests, displaying a temperate climate with rainy winters along with hot and dry summers (type Csa). Most sampling sites of Region N are located on a mountainous part of the country (altitude 250–600 m). Region S (Southern Portugal) belongs to the same climate type (Csa) as Region N, but it is less homogeneous in terms of vegetation, as it includes Iberian sclerophyllous and semi-deciduous forests (in the east) along with Southwest Iberian Mediterranean sclerophyllous and mixed forests (in the West). In contrast to Region N, most sampling sites of Region S are located in lowlands (10–200 m). A quantitative characterization of sampling sites within each region regarding climate variables is available in Supplementary Fig. S1.

Fig. 1
figure 1

Location of sampling sites within the Portuguese continental territory and in Region N (zoomed in the top-left panel), Region C (bottom left panel) and Region S (right-hand panel). Site codes consist of the first three letters of the name of the stream and sequential numbers (1 assigned to the most upstream site)

In each region, sampling sites were selected to reflect regional and local natural heterogeneity of riverine ecosystems (precluding highly disturbed locations, with visible signs of anthropogenic impact), whilst reflecting a common set of features (see below); this required a mix of previous knowledge of the terrain, as well as inspection of satellite information and literature data (sites with existing background information were privileged). A total of 28 sites were selected (Fig. 1): 11 sites (in 7 different streams) in Region C, 7 sites (in 5 different streams) in Region N, 10 sites (in 4 different streams) in Region S (additional information in Supplementary Table S1). We ensured some degree of comparability of site locations to tackle the specific aims of the study. Sampling sites were defined within each area by selecting small to medium size streams, because smaller water courses are more prone to hydrological fluctuations, namely in periods of water scarcity (drought). Streams that had presented dry sections in the past (according to the literature and confirmed by satellite imagery) were selected. Selected sites were shallow (< 1 m deep), narrow (1–12 m wide), and connected to the river continuum in periods of no water scarcity; substrate varied from boulders to gravel, but deposition zones with fine sediments were avoided; each region comprised sampling sites with some degree of vegetation cover (sparse to semi-continuous) and sites where the riparian gallery was absent (see additionally Fig. S2).

Sampling was performed in the Spring of 2019, in May, following the recommendations of the nationally adopted WFD bioassessment protocols (INAG, 2008a).

Climate data

A climatic dataset (see Fig. S1) was assembled with precipitation data from May 2019 (sampling month) and the cumulative precipitation of the previous three and six months (data kindly provided by Portuguese Institute for Sea and Atmosphere—IPMA). The dataset was additionally completed with PDSI (Palmer Drought Severity Index) values for May 2019, as well as three and six months earlier. PDSI considers precipitation, air temperature and availability of ground water, classifying drought periods according to severity and generally ranging within negative values for dry conditions and positive values for wet conditions (Palmer, 1965)—for a better adequacy to the scope of the present study, PDSI values were transformed into a category scale ranging from 1 (no drought) to 5 (severe drought) as detailed in Fig. S1. The records from three and six months before sampling were included in this dataset to provide a more accurate picture of the cumulative climatic and hydrological situation in each region prior to the sampling moment. Given the spatial resolution of the original database, nearby sampling sites share the same climatological information.

Water sampling and analysis

At each sampling site, water temperature (temp, ºC), pH, dissolved oxygen (O2, in mg/L; O2_sat, in % saturation), electrical conductivity (EC, in µS/cm), and total dissolved solids (TDS, in mg/L) were recorded in situ using a multiparameter probe (Aquaread AP-2000). Water samples were collected and transported to the laboratory in refrigerated containers. Turbidity was indirectly assessed by measuring water colour, as the absorption coefficient at 450 nm (Brower et al., 1998). Samples were mineralized with potassium persulphate (Ebina et al., 1983) and then used to measure total phosphorus content (TP, in mg/L) by the tin(II) chloride method (APHA, 2005) and total nitrogen content (TN, in mg/L) by the cadmium reduction method (Lind, 1979). Following vacuum filtration (with glass fibre filters, 1.2 µm pore size) of the samples, the residue was oven-dried at 100 °C for at least two hours and weighed to quantify total suspended solids (TSS, in mg/L) (APHA, 2005), and the filtrate was used to measure coloured dissolved organic carbon (CDOC, in m−1) (Williamson et al., 1999).

Hydromorphological characterization

Each sampling site was characterized concerning hydromorphology and riparian vegetation by measuring channel width, channel depth and flow velocity (flow meter; Global water, FP101), and visually estimating turbidity, shading (% coverage), and continuity of riparian gallery in each bank. These data were categorized in an ordinal scale from 0 to 3 (shading), 0 to 4 (flow velocity and riparian gallery), 1 to 3 (turbidity) or 1 to 4 (channel width and depth), although only a few levels were observed for some variables (see Fig. S2 for scaling details). Additionally, presence/absence (1/0) data were recorded as dummy variables for the types of substrate in the riverbed (blocks, rocks, pebbles, sand), vegetation and logs in the stream channel (and specifically Ranunculus sp. or terrestrial herbs), as well as any existent signals of nearby human influence (structures or constructions, agriculture in the margins, cattle signs). Also, elevation of each sampling site was retrieved from Google Earth for web (https://earth.google.com/web/; assessed on 10/2022).

Macroinvertebrate sampling and analysis

Benthic macroinvertebrates were collected with a standard hand net (0.30 m wide, 500 μm mesh size) as a pooled sample, by kick‐sampling six 1‐m transects respecting the proportion of microhabitats in each sampling site (Hering et al., 2003), following a standardized approach (INAG, 2008a). These samples were stored in plastic containers and preserved with 70–80% v/v ethanol. In the laboratory, samples were washed and organisms were sorted and identified to the lowest practicable taxonomic level, generally the family (and when possible, genus or species) using appropriate taxonomical keys (Hynes, 1993; Wallace et al., 2003; Edington & Hildrew, 2005; Sundermann et al., 2007; Elliott & Humpesch, 2010; Tachet et al., 2010). The abundance of each macroinvertebrate taxon in each sampling site was recorded (see Table S2).

Determination of ecological status

Ecological status was evaluated using multi-metric indices derived from the macroinvertebrate community. Briefly, this is done by estimating the deviation from pristine reference conditions, which constitute the benchmark for ecological assessment. The approach involves the calculation of ecological quality ratios (EQR), which are then translated to ecological status classes (High, Good, Moderate, Poor, Bad) according to river typology. The process was intercalibrated by EU Member States in the scope of the WFD implementation, and reference values for the various macroinvertebrate metrics and ecological quality boundaries were set-up by each member state (van de Bund, 2009; Feio et al., 2014b; Santos et al., 2021). As recommended by the national authorities (see Table S1), we used the biological quality indices IPtIN and IPtIS (respectively, North and South Invertebrate Portuguese Index; INAG, 2009; van de Bund, 2009; APA, 2016), which assess general degradation impacts on invertebrate fauna and were previously intercalibrated—they correspond to ICM-7 and ICM-10 (or IMMi-T), respectively (Munné & Prat, 2009; van de Bund, 2009; Feio et al., 2014b). Their calculation is as follows:

$$\text{IPtI}_N=\,0.25 \times S+0.15 \times {\text{EPT}}+0.10 \times J^{ \prime}+0.30 \times ({\text{IASPT}}-2)+0.20 \times \log\, ({\text{sel.}}\, {\text{ETD}}+1);$$
$$\text{IPtI}_S=\,0.40\times S+0.20\times {\text{EPT}}+0.20\times ({\text{IASPT}}-2)+0.20\times \log\, ({\text{sel.}}\, {\text{EPTCD}}+1),$$

where S is the number of families (richness); EPT is the number of families from the orders Ephemeroptera, Plecoptera and Trichoptera (sensitive taxa); J’ is Pielou’s equitability index (evenness); IASPT is the average sensitivity score per taxon—these scores are derived from the Iberian adaptation of the BMWP index, IBMWP, which essentially sums up scores defining tolerance to pollution of the taxa present in each sample (Alba-Tercedor & Sánchez-Ortega, 1988); and log (sel. ETD + 1) and log (sel. EPTCD + 1) stand for the logarithm of the sum of the abundances of selected sensitive taxa. Before the calculation of the multi-metric indices, each macroinvertebrate metric was normalized to the corresponding reference values (type-specific benchmarks for the pristine reference condition; see Table S1 for details), which were obtained from official guidance documents (INAG, 2009; APA, 2016). A second normalization step was carried out by dividing the multi-metric index value by its type-specific reference value, thus, obtaining the EQR and corresponding ecological status.

Data analysis

The three environmental datasets (climate, hydromorphology, and physical and chemical) were separately analysed using Principal Components Analysis (PCA). Prior to analysis, variables were centred and standardized to accommodate for differential scales. Variables coding for the presence of rocks and pebbles (hydromorphological dataset) were not considered, as these substrates were common to almost all sites; analogously, TN and water colour (physical and chemical dataset) were also discarded because they were uninformative. This initial analysis allowed inspecting the main environmental gradients and the main sources of variation in the data (regional vs. local).

The macroinvertebrate community dataset was analysed using Principal Coordinates Analysis (unconstrained PCoA), computed on a distance matrix based on the square root of Bray–Curtis dissimilarity. This is a popular distance in ecological research, as it circumvents the typical non-linearity of ecological gradients and the double-zero problem—“shared absence” of species across samples (Legendre & Gallagher, 2001; Borcard et al., 2011). Prior to the analysis, rare macroinvertebrate taxa and dubious taxonomical entities (e.g. partially unidentified specimens) were excluded from the dataset; despite reservations on the removal of rare taxa (for considerations on the removal of rare taxa, see Vidal et al., 2014), we excluded all taxa under (i) 5% occurrence or (ii) under 10% occurrence and low total abundance (< 10 individuals). Abundance data were transformed (square root transformation followed by Wisconsin double standardization) to explore extended dissimilarities (metaMDS option in PCoA). The PCoA allowed assessing the main sources of variation (regional vs. local) in the macroinvertebrate community, and the taxa associated with the main ecological gradients. To explore the association between community structure and ecological status, PCoA samples (i.e. site) scores (from the first and second axis) were correlated with the corresponding site EQR (using Pearson correlation index, r).

To assess the contribution of each explanatory environmental dataset on the macroinvertebrate community, models were built using distance-based Redundancy Analysis (db-RDA) based on Bray–Curtis dissimilarity, through the use of a constrained form of PCoA (Legendre & Anderson, 1999; Borcard et al., 2011). Similarly to the unconstrained ordination procedure (see above), abundance data were transformed prior to analysis (square root followed by Wisconsin double standardization) and the square root of Bray–Curtis dissimilarities was used. Each environmental dataset was used in its standardized form (as for the PCA, to minimize scale effects) and a priori selection of variables for each dataset was performed. A stepwise selection procedure of explanatory variables was coupled with the inspection of variance inflation factors (collinearity) in the final model (Borcard et al., 2011); when in presence of two (or more) correlated variables with similar weights in the model, we selected the most simple and informative combination (e.g. variables “sand” and “rocks” constituted opposite vectors that were highly correlated with “flow”; therefore, only “flow” was included in the final model). The purpose of this selection step was to avoid the noise provoked by redundant or less informative variables (Borcard et al., 2011) and to obtain parsimonious models, i.e. models with a good level of explanation using as few predictor variables as possible (Gauch Jr., 1993). This combination of mathematical and logical criteria led to the inclusion of the following explanatory variables in the final models: (i) temperature, dissolved oxygen (in mg/L) and conductivity (physical and chemical); (ii) presence of Ranunculus sp., elevation and flow velocity (hydromorphology); and (iii) cumulative precipitation in the previous 6 months and PDSI in December 2018 (climate).

The use of db-RDA allowed calculating the amount of variation (in terms of ecological distance based on the macroinvertebrate community) explained by each set of explanatory variables, as well as by the overall environmental dataset (global model). The significance of each model was tested using a permutation test, and the adjusted R2 was computed (it provides the proportion of variation in the ecological distance that is explained by the environmental variables). Additionally, a variation partitioning technique (Borcard et al., 1992; Peres-Neto et al., 2006) was applied to quantify the variation explained by the various environmental datasets whilst controlling for (partialling out) the effect of others. In this way, it was possible to discern the unique contribution of each explanatory dataset (e.g. “pure” hydromorphological variation) as well as the joint (i.e. overlapping) contributions of climate, hydromorphology and physical and chemical variables. A Venn diagram was built using Microsoft® Office tools to show the individual and joint contribution of the environmental subsets.

Multivariate analyses and graphics were elaborated using with R software (R Core Team, 2022), using the IDE interface RStudio (RStudio Team, 2020). Specific R packages were required, namely “ggord” (Beck, 2021) and “ggplot2” (Wickham, 2016) for plotting, as well as “vegan” (Oksanen et al., 2020) for ordination. Preliminary steps to support model choice additionally required “vegan” functions rankindex()—to evaluate the association between ecological distance and environmental gradients in various combinations of dissimilarity measures and macroinvertebrate data transformations—and ordiR2step()—to assist on environmental variable selection based on the adjusted R2 and permutational P value of the models.

Results

Environmental context of sampling sites

Overall, samples differed in their climatic, hydromorphological and physical and chemical features (Fig. 2; see Figs. S1-S3 for full details). In most cases, regions (N, C and S) were distinguishable according to their abiotic context, although local variations also occurred. The heterogeneity among regions was more evident concerning climatic variables (Fig. 2, left), with higher precipitation occurring in Region C when compared to Regions N and S (which have overall similar precipitation regimes); however, Region S differs from N by having less water availability (expressed by higher PDSI levels in S). The three regions were also distinct in their hydromorphological features (Fig. 2, centre), since sites from Region C (right side of PCA biplot) were associated with higher flow velocity, higher riparian cover and associated shadow, whilst sites of Regions S and N (with some exceptions) were associated with macrophyte presence (especially Ranunculus sp.) and sandy substrate. Northern (N) sites displayed narrower river channels and the presence of terrestrial herbs (second axis of the PCA biplot). Despite these general regional patterns, local variations occur, as seen by the spread of the data points. Variation in physical and chemical variables (Fig. 2, right) was large for Regions N and S, but Region C was very homogeneous. The extreme variation in Region N was mostly due to site Xed (bottom left data point), where very low oxygen levels were recorded. A clear mineralization and temperature gradient was visible in the PCA biplot (mostly related to the first axis), with sampling sites from Region S displaying higher conductivity and temperature, dissolved solids and organic carbon than sites from Regions C and N, as well as higher phosphorus concentrations (in some sites).

Fig. 2
figure 2

PCA biplots for climatic (left), hydromorphological (middle) and water physical and chemical (right) data. Symbols represent sampling sites according to geographical region (squares—Region N; circles—Region C; triangles—Region S); arrows represent measured environmental variables (corresponding labels shown close to arrow tip). Ellipses (95% confidence) for each region are shown in grey; for simplification, labels of individual sampling sites are not shown. Percent variation explained by each PC is given within brackets

Variation in macroinvertebrate communities

The macroinvertebrate community structure and composition often reflected local variation, although some general inter-regional differences were found (Fig. 3). Unconstrained analysis (PCoA) showed an overall separation of Regions C (right) and S (left) along the first ordination axis, indicating relevant differences in community composition between these regions (except for a few sites). Whereas sites from Region C were more homogeneous, sites from Region S were scattered throughout the second axis (high local variation). Surprisingly, sites from the north (N) were more heterogeneously distributed throughout the ordination plot, despite the fact they all belong to the same hydrographic basin and river typology (Table S1) with the exception of Moi.

Fig. 3
figure 3

PCoA ordination of macroinvertebrate abundance data based on Bray–Curtis dissimilarity. Species (left) and site (right) scores are shown separately to improve visualization. Crosses (×) depict species scores, whereas other symbols represent sampling sites according to geographical region (squares—Region N; circles—Region C; triangles—Region S); ellipses (95% confidence) for each region are shown in grey. Taxa abbreviations are decoded in Table S2 (Supplementary Information). Percent variation explained by each PC is given within brackets

Important taxa associated with the first PCoA gradient were Leuctridae (Leuct), Atherix sp. (Ather), Rhyacophila sp. (Rhya), Gomphidae (Gomph), Serratella sp. (Serrat) and Polycentropodidae (Polyce), which were more frequent and abundant in sites from Region C (see right side of the first axis in Fig. 3). Some of these taxa were shared with sites Cap2 (Region S), Vil2 and Moi (Region N), thus explaining the association of these sites with those from Region C. A Siphonoperla morphospecies (Siphon) also contributed to the separation of sites from Region C, as it was found exclusively in this region. A total of 12 taxa (including the Siphonoperla morphospecies) occurred exclusively in this region (Table S3). On the opposite side of this gradient, taxa such as Oulimnius sp. larvae (Oullar), Physidae (Physi) and Hydrobius sp. larvae (Hydblar) were distinctly more abundant in Region S and in some sites in Region N, segregating sites on the left side of the diagram (Fig. 3).

Variation in the second PCoA axis was most pronounced for Regions S and N (Region C was more homogeneous). Important taxa include Atyaephyra sp. (Atyae), Caenis sp. (Caen) and some Chironomidae groups (Chironomini—Chini; Tanypodinae—Tanyp; and Tanytarsini—Tanyt), which were predominantly found in Oei2, Oei3, Oei4 and Cai1 (Region S), as well as Vil1 (Region N)—bottom left in the diagram (Fig. 3). Curiously, Oei1 was distinct from the remaining Oeiras sites, as it did not have such high abundances of these taxa. On a distinct note, Notonecta sp. (Noto), Dytiscidae larvae (Dytlar) and Sympecma sp. (Sympec) occurred predominantly in sites from Regions N (Cal1, Cal2, Sou1, Xed) and S (top left in the diagram; Fig. 3), being almost absent from Region C. Only 7 and 3 taxa were exclusively found in Regions N and S, respectively (Table S3).

Overall, there was some correspondence between community composition and ecological quality (Fig. 4), which partly relates to regional and local differences. Indeed, EQR values were significantly correlated with the first PCoA axis (r = 0.65, P < 0.001), but were not associated with the second PCoA axis (r = 0.04, P = 0.85). All sites from Region C (all located on the right side of the diagram) were of High or Good ecological status. Sampling sites from Regions S and N were more heterogenous in terms of ecological quality, ranging from Poor to Good ecological status, apart the few exceptions of sites Cai1 and Cai2 in Region S, as well as Moi in Region N, which were found to be of High ecological status. Considering IBMWP as an indicator of species sensitivity, it becomes clear that sites from Region C had a high proportion of exclusive sensitive taxa (67% of macroinvertebrate taxa with an IBMWP score had a score ≥ 7), whereas northern and southern sites were dominated by tolerant taxa—in both, 100% of the exclusive taxa had a score < 7 (Table S3).

Fig. 4
figure 4

Relationship between ecological status and PCoA ordination of macroinvertebrate abundance data based on Bray–Curtis dissimilarity. On the left, PCoA ordination of site scores is shown with data labels identifying corresponding ecological status (Poor to High); on the right, a positive association is shown between ecological quality ratios and PCoA site scores from the first axis. Symbols represent sampling sites according to geographical region (squares—Region N; circles—Region C; triangles—Region S); data point labels show ecological status (left) or site identification (right)

Constrained analysis and variation partitioning

The physical and chemical, hydrological and climatic variables explained a significant and comparable portion (7.7–10%, based on the adjusted R2) of the ecological distance among sites (Table 1). A global environmental model pooling these three subsets explained 17% of the macroinvertebrate community gradients. The unique contribution of each environmental subset (partial db-RDA) dropped to 2–5%, indicating that physical and chemical features, hydromorphology and climate influences are inter-correlated (i.e. they jointly explain variation in the macroinvertebrate data). Indeed, the shared proportion of variance explained was substantial (Fig. 5).

Table 1 Summary of db-RDA models applied to the macroinvertebrate dataset (using PCoA computed on Bray–Curtis dissimilarities), showing the proportion of variation in the ecological distance that is explained by the environmental datasets
Fig. 5
figure 5

Partitioning of variation in macroinvertebrate abundance data based on Bray–Curtis dissimilarity explained by environmental variables, including unique and shared contributions of each dataset. Areas depict an approximate representation of % explanation

The global model (db-RDA with all environmental variables; Fig. 6) showed a separation of Region C from Regions N and S along the first axis, analogously to unconstrained PCoA (see above). This separation was associated with higher flow velocity, dissolved oxygen and precipitation in Region C, along with lower water temperature and PDSI values; Regions N and S (with the exception of Moi, Vil2 and Cap2 as previously noticed) were on opposite gradients to Region C (low flow, low precipitation, higher temperature and PDSI) and were more prone to the presence of Ranunculus sp. and other macrophytes in the channel. Taxa strongly associated to the first axis of the model (Fig. 6) were Leuctridae (Leuct) and Atherix sp. (Ather), among others, which were more frequent and abundant in the sites from Region C, Vil2 and Moi (Region N) and Cap2 (Region S). These sites scored higher in terms of EQR, thus linking increasing gradients of flow velocity, dissolved oxygen and precipitation to better ecological status. A gradient of elevation was reflected on the second axis, a secondary gradient that explains some degree of intra-regional differences, especially associated with sites at higher altitudes (> 500 m), such as Mau1, Cer, Can, and Cat—Fig. 6. The position of Oei2, Oei3, Oei4 (Region S) in the model and the presence of Atyaephyra sp. (Atyae) and Caenis sp. (Caen) (as well as some dipterans) were associated with increased conductivity and PDSI (drought) level. Overall, the environmental gradients associated with the ecological distance between samples (i.e. dissimilarities in macroinvertebrate community composition) show an interplay between climatic, hydromorphological and physical and chemical variables (note for example the association between precipitation, flow velocity and dissolved oxygen; Fig. 6), confirming that it is difficult to ascertain their isolated influence (i.e. the unique contribution of each environmental subset), as shown in Fig. 5.

Fig. 6
figure 6

Distance-based redundancy analysis (db-RDA) ordination of macroinvertebrate abundance data based on Bray–Curtis dissimilarity, representing the relationship between sampling sites (different symbols according to region) and species scores (small circles or crosses) with the selected physical and chemical, hydromorphological and climatic variables (arrows); ellipses (95% confidence) for each region are shown in grey. Percent variation explained by each axis is given within brackets. Environmental explanatory variables include: (i) water temperature (temp), dissolved oxygen in mg/L (O2) and electrical conductivity (EC); (ii) presence of Ranunculus sp. (ranunc), elevation of the sampling site (elevation) and flow velocity (flow); and (iii) cumulative precipitation in the previous 6 months (prec_6m) and PDSI (drought index) in December 2018 (pdsi_dec). Species (top right) and site (bottom right) scores are shown separately to improve visualization; taxa abbreviations are decoded in Table S2 (Supplementary Information)

Discussion

Riverine ecosystems face a multitude of environmental stressors as well as their interactions, and the biological communities therein respond accordingly. A deep understanding of this natural picture, as well as of deviations from common scenarios, is critical to promote informed management decisions (Birk et al., 2020). To properly identify threats to freshwater biodiversity and impacts on ecosystem health, there is a need to understand how community composition and structure change along environmental gradients, and whether this is reflected in riverine ecological status as defined by standard assessment metrics. Here, we sampled and analysed macroinvertebrate communities across hydrological and climate regimes in a set of Portuguese streams in 2019, distributed along a gradient defined by regional precipitation and temperature regimes. Climatic and hydrological variation is of utmost importance in regions of the globe facing water scarcity and river intermittency (e.g. areas under Mediterranean influence), shaping regional features of riverine ecosystems and putatively affecting ecosystem health.

The last two decades have been generally warmer than the norm (1971–2000) in Portugal, but the period that preceded our sampling campaign was heterogeneous. Specifically, 2017 was an extremely dry and hot year (IPMA, 2017), with intense drought (extending through Autumn), substantially affecting aquatic ecosystems. On the contrary, 2018 presented normal levels of precipitation (IPMA, 2018), which may have allowed some degree of recovery of the ecosystems. However, this was largely due to a very rainy Spring, which was followed by a very hot and dry Summer (IPMA, 2018) that may have contributed to the return of stressful conditions, especially in the most drought-prone regions. In turn, the sampling year (2019) was also closer to the norm, although high PDSI levels were still recorded, especially in the South (IPMA, 2019). In 2018, eight sites out of 28 were dry in October/November (Table S4); small streams from Region N were particularly prone to drought. So, despite this paper provides a picture of the status of macroinvertebrate communities and the riverine environment at a specific moment (Spring 2019), it is reasonable to claim that our samples captured the cumulative effects of the combination of the harsh climatic conditions in 2017 and the hydrological fluctuations in subsequent years.

Other studies have provided evidence of long time lags between climatic variation and its effects, such as on the productivity of vegetation from the riparian gallery (Pace et al., 2021), which in turn can be reflected on plant-associated insect communities (Schweiger et al., 2012). The intermittency of flow for unexpectedly long periods of time often translates into negative repercussions for aquatic and terrestrial biota (Datry et al., 2017; Pace et al., 2021). On the other hand, isolated pools can work as reservoirs of biodiversity of groups of limnophilic macroinvertebrates (Bonada et al., 2006). These pools contribute to the overall maintenance of biodiversity throughout cycles of drought and flow even though communities structure and functioning might change with the progressive disappearance of more drought-sensitive species (Bonada et al., 2006; Banegas-Medina et al., 2021). Also, the increasing variation in the outbreak and duration of drought periods can compromise the robustness of the macroinvertebrate communities (Cid et al., 2017). Flow interruptions undeniably play an important role in disturbing biodiversity even when these alterations are expected to happen (Datry et al., 2014; Leigh & Datry, 2017), by progressively eliminating taxa with less effective resistance and/or resilience mechanisms (Stubbington et al., 2017). Changes in flow are even more worrying in Mediterranean streams, which are more prone to aridity, as they may alter responses of their macroinvertebrate communities to drought phenomena in an abrupt way (Bonada et al., 2006). This scenario of low flow, intermittency or drought was confirmed in our sampling sites during some periods of time, based on our own observations in the 2018–2019 period (Table S4) and on historical/literature data.

Our sampling strategy was successful in capturing regional environmental gradients (climatic and water availability features), whilst reflecting local natural heterogeneity. This was visible in the clear distinction of the three regions according to precipitation (higher in C when compared to N and S) and proneness to drought (higher in S, where low precipitation was coupled with higher evapotranspiration). A gradient related with water availability was, therefore, observed from Region C (wettest) to S (driest), with Region N occupying an intermediate position (although sites from Region N were particularly prone to intermittency; Table S4). Hydromorphological and physical and chemical features of sampling sites also revealed regional differences, but the degree of overlap between regions was higher because of the considerable scatter of samples. The dispersion of data points confirms that we were still able to encompass local natural variation whilst complying with a common set of local features during site selection (ensuring a comparable background across samples). Other studies (e.g. Datry et al., 2014; Leigh et al., 2016; Pařil et al., 2019) used similar approaches to explore macroinvertebrate biodiversity across spatial scales, by establishing specific criteria for site admissibility whilst covering the natural array of environmental variation.

Overall, the analysis of the macroinvertebrate communities demonstrated that climatic influences were closely linked to hydromorphology and, to a lesser extent, to the physical and chemical context; unique contributions of climatic, hydromorphological and physical and chemical explanatory variables were difficult to distinguish, and the macroinvertebrate communities were found to be modulated by their joint (i.e. shared) influence. We argue that this joint influence reflects direct and indirect effects of climate. Indeed, flow and macrophyte cover were dependent on precipitation patterns, whilst dissolved oxygen and flow velocity were negatively correlated with temperature. Drier sites (mostly samples from Region S) displayed a less extensive cover (and shading) of riparian gallery, as well as a more pronounced occurrence of in-bed macrophytes associated with lower flow velocity. In fact, riparian forests (represented by Alnus glutinosa (L.) Gaertn., Fraxinus angustifolia Vahl, Populus spp., Salix spp., etc.) are considered Eurosiberian islands in Mediterranean landscapes (Gavilán et al., 2018), as this type of vegetation is supported by the local availability of water in an otherwise unfavourable environment. Especially in the South (Region S), droughts, water scarcity (both surface and groundwater) and river intermittency may represent a challenge to this type of vegetation, thus explaining the overlap between climatic (lower precipitation, higher PDSI) and hydromorphological (lower riparian cover) features. This interconnection between climate and hydromorphology is present in the importance of accumulated rainfall in the seasonality and productivity of riparian vegetation (Pace et al., 2021), as well as in the adaptations of algae and vascular plants to harsh conditions to overcome periods of water intermittency in stream beds (Sabater et al., 2017). In contrast, Region C recorded higher precipitation and lower PDSI, translating into higher flow and riparian cover. Region N occupied an intermediate position between Regions C and S; despite the tendency for Summer or post-Summer droughts (Table S4), water availability in Region N does not seem as problematic as in Region S. Indeed, higher temperatures were associated with proneness to drought, and corresponding decrease of dissolved oxygen and flow velocity, especially due to Region S. Conductivity was also higher in this region (mostly due to geological differences; Alves et al., 2004; INAG, 2008b; Feio et al., 2009). The close interconnection between climate, hydromorphology and physical and chemical features contributes to the idea that the ecological dissimilarities found reflect both a direct climatic gradient and an indirect climatic gradient identified through critical hydromorphological (mostly) and physical and chemical variables.

Both unconstrained and constrained analyses of the macroinvertebrate communities resulted in a clear distinction between regions, especially between C and S. Additionally, sampling sites from Region S were more heterogenous (large scatter in multivariate plots) than Region C (homogeneous cluster of samples). Although sampling sites from Region C belong to distinct hydrographic basins, the sampled streams are geographically close enough to allow the establishment of gene flow between streams by the flying life phases of many macroinvertebrates (Banegas-Medina et al., 2021). This may concur to explain the observed homogeneity of communities within this region, along with the fairly homogeneous physical and chemical features of the sites in this region (unlike S and N). On the contrary, the heterogeneity of macroinvertebrate communities in Region N is surprising, taking into account the narrow geographic range of N sites and similar climatic and hydromorphological features. Although the existence of unmeasured constraints cannot be ruled out considering the amount of variance explained by the models, differences in water availability (and susceptibility to drought) of the sites of this region can help explaining the heterogeneity of its biological communities despite the geographical proximity of streams. In fact, Region N presented more locations without water in the preceding Autumn (2018) than any other region (Table S4), which is likely to be reflected in the health of the biological communities in the following Spring. Differential drying of the sites in this region could have compromised emergence and oviposition patterns in some sites, causing this unexpected within-region heterogeneity. Hydromorphological characteristics and/or climate can cause different stages of drought in close locations. For example, the condition of riparian galleries and consequently exposure to sunlight can provoke differential drying among sites, as well as slope (Cartwright et al., 2020). In fact, the sites from Region N were indeed more prone to drying (Table S4).

The differences across regions (ecological distance) were partially translated into differences in ecological status (bioindicator value of the macroinvertebrate community). The uniqueness of Region C concerning climatic, hydromorphological and physical and chemical characteristics was reflected in overall high EQRs and High (~ 80% of sites) or Good ecological status, which did not happen in the other regions. Many of the taxa exclusive to Region C (Table S3) are sensitive to disturbance, which is certainly contributing to the overall high ecological status observed. The consequent separation of Region C from the other regions in the analyses (mostly along the first ordination axes) justifies the positive correlation found between ecological distance and EQRs. On the contrary, Regions N and S presented overall lower EQRs, yet meeting a broader range of ecological statuses (Poor to High). In Region N, Moi and Vil2 were the only sites with High and Good ecological status (respectively), which is likely due to higher flow and water oxygenation that favour healthier (e.g. richer, more diverse) biological communities. The remaining sites of this region scored low EQRs, which is consistent with lower water availability conditions across the region in the past (see above), reflecting cumulative effects of drought. Concerning Region S, lower EQRs (Poor or Moderate ecological status) belong to Oeiras (Oei2-Oei4) and Grândola (Gra2) streams, where hydromorphological conditions are challenging, accumulated with the climatic stress imposed to the region as a whole. The other sites scored higher EQRs (Good and High ecological status). These differences illustrate variation in biological patterns in this region due to the vastness of the geographical distribution of its sampling sites and different intensity of climatic stress.

On a finer scale, the analysis of the macroinvertebrates associated with each region allowed the identification of some patterns. Sensitive organisms such as Leuctridae (Plecoptera) and Athericidae (Diptera), which are not very tolerant to drought periods and hydromorphological alterations, were mostly present in sites with high flow. Streams with permanent flow and riffles had a marked presence of Leuctridae (Plecoptera), Siphlonurus sp. and Serratella sp. (Ephemeroptera), as well as Rhyacophila sp. (Trichoptera) in Region C (high flow velocity and water oxygenation), confirming the preference for this type of habitats by EPT taxa (Bonada et al., 2006). Mediterranean streams usually present macroinvertebrate communities with organisms that are adapted (to a certain degree) to the typical harsh conditions of this climate type (Bonada et al., 2007; Cid et al., 2017). In our case, this trend was observed within Regions N and S (e.g. in Oei2-Oei4, Sou1, Xed, Cal1 and Cal2, which all have a history of dry periods), with the presence of Notonecta sp. and Dytiscidae larvae and adults, which tend to be frequent in pools formed during the drying process (Bonada et al., 2006). Elmidae larvae and adults, although characteristic of riffles (White, 2009), were also present, as previously happened in streams subjected to drying in Mediterranean climate streams (Bonada et al., 2006). Also, thermo and limnophilic ephemeropterans (e.g. Caenis sp.; Péran et al., 1999) were also present in these sites, which concurs with the Mediterranean characteristics of Regions N and S.

Overall, our study shows that regions with distinct climate and water availability backgrounds were distinguishable according to their environmental features, but also—partially—in terms of the composition and bioindicator value of the macroinvertebrate community. Additionally, climate (and associated water scarcity) was coupled with other environmental drivers of the macroinvertebrate community, namely hydromorphology (riparian cover and flow velocity). Lower ecological status seemed to be associated with accumulated hydric stress in more vulnerable regions (namely S and N). It is unclear whether these ecological differences across regions will be potentiated by climate change and extreme events, via differential pressures (Region C vs. Regions N and S). In such scenarios, it is important to understand whether the background conditions influence the resilience of macroinvertebrate communities to the impacts of drought or low flow. In our case, this could imply that macroinvertebrate communities that are less used to water scarcity and droughts (i.e. Region C) may respond more dramatically to droughts, being most affected; alternatively, it could be the case that communities that are already displaying signs of disturbance (Regions N and S) will be most affected, as a consequence of cumulative pressures. Future work from our team is ongoing to compare macroinvertebrate community patterns across Regions N, C and S in hydrologically distinct years. This is a much-needed venture to understanding resilience patterns.