/* ------------------------- 1vw è uguale a: 15.92px ------------------------ */
:root {
  --padding: 54px; /* 30 + 24*/
  --black: #0a0a0a; /* -> opacity: 50% - 10% */
  --gray: #717182;
  --gray2: #e5e5e5;
  --white: #fff;
  --white_80: rgba(255, 255, 255, 0.8);
  --white2: #f9f9fa;

 
/* NUOVE VARIABILI FONT-SIZE (Scala in PX - Desktop) */
  --font-xs: 0.75rem;    /* Tag, dettagli */
  --font-s: 0.875rem;     /* Bottoni, Small Text */
  --font-base: 1rem;  /* Corpo del testo */
  --font-m: 1.4375rem;     /* Sottotitoli grandi */
  --font-l: 2.25rem;     /* Titoli Sezione h2 */
  --font-xl: 3.25rem;    /* Titoli Principali h1 */
  --font-xxl: 18.75rem;  /* Titolo Starting View */
}

/* Dark Theme*/
/*:root{
  --black: #f9f9fa; 
  --gray: #b3b3c2;    
  --gray2: #2a2a2a;   
  --white: #0A0A0A; 
  --white_80: 10, 10, 10,0.8;

  --white2: #151515;
}*/



[data-scroll-container] {
    perspective: 1px; 
    transform-style: preserve-3d;
    min-height: 100vh;
}


@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.ttf");
  font-display: swap;
  box-sizing: border-box;

}

main.touch {
   position: relative;
   height: auto;
}

@font-face {
  font-family: "Horgen";
  src: url("fonts/Devant\ Horgen.otf");
  font-display: swap;
}

/* #region body and Common*/
body {
  margin: 0;
  color: var(--black);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Satoshi";
  font-optical-sizing: auto;
  letter-spacing: -0.03rem;
}

html, body {
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-font-smoothing: inherit !important;
  overflow: hidden;
}


html {
  background-color: var(--black); /*forza la navbar di sisteam android ad essere nera*/
}

.c-scrollbar{ 
  z-index: 1001 !important; /* scrollbar over everything */
}

a {
  text-decoration: none;
  color: var(--black);
}

h1,
h2 {
  font-optical-sizing: auto;
  margin: 0;
  color: var(--black);
  font-weight: 500;

}

h1 {
  font-size: var(--font-xl);
}

p {
  color: var(--black);
  margin: 0;
  font-optical-sizing: auto;
  font-weight: 500;
}

section {
  width: 100%;
  min-height: 100%;
  z-index: 2 !important;
}

/* ------------------ button ------------------*/

.button {
  position: relative;
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: auto;

  padding: 12px 43px;
  border-radius: 6px;
  font-size: var(--font-s);

  border: 1px var(--gray2) solid;
  color: var(--black);

  overflow: hidden;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.button:hover .text span {
  transform: translateY(-110%);
}

.button:hover .ripple span {
  transform: translateY(0);
  border-radius: 0;
  transition-duration: 0.5s, 0.9s;
}

.button .ripple {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.button .ripple span {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateY(101%);
  background-color: var(--black);
  border-radius: 30% 30% 0 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);
}

.button .text {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.button .text span {
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.button .text span::after {
  content: attr(data-text);
  position: absolute;
  top: 110%;
  left: 0;
  color: var(--white);
}

.button.reverse {
  border: 1px var(--white) solid;
  color: var(--white);
}

.button.black {
  color: var(--white);
  background-color: var(--black);
  border: solid 1px var(--black);
}

.button.reverse .ripple span,
.button.black .ripple span {
  background-color: var(--white);
}

.button.reverse .text span::after,
.button.black .text span::after {
  color: var(--black);
}

.button.small {
  font-size: var(--font-s); /* testo più piccolo */
  padding: 7px 14px; /* padding ridotto */
}

.button.round {
  border-radius: 50px;
  aspect-ratio: 1/1;
  padding: 10px 18px; /* padding ridotto */
}

/* ------------------ Title 1 ------------------*/

.titleDiv {
  background-color: var(--black);
  width: 56px;
  height: 2px;
  border-radius: 2px;
  margin-top: 24px;
}

.titleWrap {
  display: flex;
  align-items: left;
  justify-content: space-between;
  flex-direction: column;
}

@media (max-width: 800px) {
  .titleWrap h1{
    font-size: var(--font-xl);
  }

}
/* ------------------ Tag ------------------*/
.TagWrapper {
  width: 65%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  gap: 10px;
}

.TagWrapper span {
  font-size: var(--font-xs);
  padding: 10px 14px;
  border-radius: 6px;
  border: solid 1px rgba(10, 10, 10, 0.2);
}

/* ------------------ Arrow ------------------*/
.arrow-icon {
  display: inline-flex;
  vertical-align: middle;
  color: var(--black); /* oppure qualsiasi colore */
  width: 16px; /* dimensione base */
  height: 16px;
}

.arrow-icon svg {
  width: 100%;
  height: 100%;
  rotate: -45deg;
}

/* #endregion */

/* #region Loading */

.loading-screen {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 100000;
  background-color: var(--black);
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  --transition-duration: 1.2s;
}

.loading-screen svg {
  width: 8%;
}


@media (max-width: 800px) {
  .loading-screen svg {
    width: 20%;
  }
}

.loading-screen svg path:first-child {
  stroke-dashoffset: 147px;
  stroke-dasharray: 147px;
  -webkit-transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s;
  transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s;
}

.loading-screen svg path:nth-child(2) {
  stroke-dashoffset: 62px;
  stroke-dasharray: 62px;
  -webkit-transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
  transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
}

.loading-screen svg path:nth-child(3) {
  stroke-dashoffset: 62px;
  stroke-dasharray: 62px;
  -webkit-transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
  transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

.loading-screen svg path:nth-child(4) {
  stroke-dashoffset: 62px;
  stroke-dasharray: 62px;
  -webkit-transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.30000000000000004s;
  transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.30000000000000004s;
}

.loading-screen svg path:nth-child(5) {
  stroke-dashoffset: 62px;
  stroke-dasharray: 62px;
  -webkit-transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s;
  transition: stroke-dashoffset var(--transition-duration)
    cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s;
}

.loading-screen svg path.active {
  stroke-dashoffset: 0px;
}

/* #endregion */

/* #region Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: solid 1px #e1e1e2;
  width: 100%;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: calc(var(--padding) - 20px) 30px;
  box-sizing: border-box;
  transform: translate(0, 0) rotate(0.001deg);
  background: var(--white_80); /* colore con alpha */
  backdrop-filter: blur(10px); /* effetto blur dietro */
  -webkit-backdrop-filter: blur(10px); /* compatibilità Safari */
  z-index: 999;

  font-size: var(--font-base);
  font-family: "Satoshi";
  font-optical-sizing: auto;
  letter-spacing: -0.03rem;
}

header nav {
  display: flex;
  flex-direction: row;
}

header .OutRange {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;

  /* distanza costante dai bordi */
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
}

header > .OutRange { /* scritta MOSCAFOLIO*/
  font-size: var(--font-base); 
}


header .Link {
  color: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;

  /* niente bordo, niente padding qui */
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  background-color: var(--black);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease-in-out;
}

header nav a.hovered::after {
  transform: translateX(-50%) scale(1);
}

header nav a.active::after {
  transform: translateX(-50%) scale(1);
}

a.disabled {
  pointer-events: none;
  cursor: default;
  user-select: none;
}

/* Responsive*/

/* Hamburger button */
header .hamburger {
  display: none; /* visibile solo sotto 800px */
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 1.5rem;
  height: 2rem;
  gap: 5px;
  z-index: 1001; /* sopra il menu */
  margin-right: 1.5rem;
  
}

header .hamburger span {
  display: block;
  height: 2px;
  background-color: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu side (hidden di default) */
header nav {
  display: flex;
  flex-direction: row;
}

/* Mobile */
@media screen and (max-width: 800px) {
  header{
    padding: calc(var(--padding) - 20px) 0px;
  }

  header nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    gap: 2rem;
    z-index: 1000;

  }

  header nav.active {
    transform: translateX(0); /* appare a tutto schermo */
  }

  header .hamburger {
    display: flex;
  }
}

/* Animazione hamburger → X */
header .hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
header .hamburger.open span:nth-child(2) {
  opacity: 0;
}
header .hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* #endregion */

/* #region Footer */
footer {
  width: 100%;
  height: 700px;
  background-color: var(--black);
  order: 9999;
  color: var(--white);
  background: var(--black);
}

.footer_wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

footer .footer_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 100px/2));
}

footer h1 {
  color: var(--white);
  font-size: var(--font-xl);
  white-space: nowrap;
}

footer .footer_content p {
  color: var(--white);
  opacity: 50%;
  font-size: var(--font-m);
}

footer .icons_wrapper {
  width: calc(100% - var(--padding) * 2);
  display: flex;
  justify-content: left;
  gap: 16px;
  position: absolute;
  bottom: 111px; /*altezza footer_bottom + padding*/
  left: var(--padding);
}

footer .icons_wrapper img{
  height: 20px;
}

footer .button {
  margin-top: 16px;
}

footer hr {
  width: calc(100% - var(--padding) * 2);
  height: 1px;
  background-color: var(--white);
  opacity: 10%;
  margin: 0;  
  position: absolute;
  bottom: 81px; /*altezza footer_bottom*/
  left: var(--padding);
}

footer .footer_bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 30px calc(var(--padding));
  box-sizing: border-box;
  position: absolute;
  bottom: 0%;
}

footer .footer_bottom p {
  color: var(--white);
}

@media (max-width: 800px) {

  :root {
    --padding: 30px;
  }
  footer{
    height: 70vh;
  }
  footer h1{
    font-size: var(--font-l);
  }

  footer .footer_content p {
    color: var(--white);
    opacity: 50%;
    font-size: var(--font-base);
  }

  footer .icons_wrapper img{
  height: 16px;
}
}

/* #endregion */

/* #region MAIN */

.StartingView {
  width: 100vw;
  height: 100vh;
  background-color: var(--white2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  filter: brightness(1);
}

.StartingView h1 {
  font-family: "Horgen";
  font-size: 300px;
  line-height: 94%;
  color: var(--black);
  overflow: hidden;
}

.StartingView p {
  font-size: var(--font-base);
  color: var(--gray);
  text-align: center;
  width: 550px;
}

.StartingView .discover {
  position: absolute;
  bottom: 20px;
  gap: 5px;
  line-height: 1;
}

.discover svg {
  animation: bounce 1s infinite alternate;
  vertical-align: middle;
  position: relative;
  top: -1.5px;
}


/* animazione su/giù */
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); } /* spostamento verso il basso */
}

@media (max-width: 800px) {
  .StartingView h1 {
    font-size: 100px;
    margin-bottom: 20px;
  }

  .StartingView p {
    font-size: var(--font-s);
    width: 80%;
  }

  .StartingView {
    height: 80vh;
  }
}


/*------ About Me ------*/

.mainContent{
  background-color: var(--white);
}

.AboutMeParagraph{
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 32px;
  flex-direction: column;
  padding: 200px 0;
  font-size: var(--font-base);
  background-color: var(--white);
  position: relative;
  z-index: 1;
}

.AboutMeParagraph p{
  margin-left: 50%;
  max-width: 600px;
  padding-right: 30px;
  box-sizing: border-box;
  font-size: calc(var(--font-base) + 2px);
}

.AboutMeParagraph .buttonWrapper{
  margin-left: 50%;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
}

@media (max-width: 800px) {

  .AboutMeParagraph {
      margin: 120px 30px;
  }

  .AboutMeParagraph p{
    margin-left: 0%;
    font-size: var(--font-s);
  }
  .AboutMeParagraph .buttonWrapper{
    margin-left: 0%;
  }
}


/*------ Selected Works ------*/
.SelectedWorks{
  background-color: var(--white);
  padding-bottom: 120px;

}


.SelectedWorks h1 {
  margin-left: 26px;
  margin-bottom: 16px;
  font-size: var(--font-l);
}

.SelectedWorks .WorksGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px; /* distanza tra colonne */
  row-gap: 80px;    /* distanza tra righe */
  padding: 20px;
}

.SelectedWorks .WorksGrid .work {
  overflow: hidden;
  transition: transform 0.2s ease;
}


.SelectedWorks .WorksGrid .imageWrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: all 0.4s ease;
  background-color: var(--gray2);
}

.SelectedWorks .WorksGrid .imageWrapper img {
  width: 100%;
  aspect-ratio: 710/470;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
}


.SelectedWorks .WorksGrid .tags {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: filter 0.4s ease, opacity 0.4s ease;
  filter: blur(4px);
}

.SelectedWorks .WorksGrid .tags span {
  background: rgba(255, 255, 255, 0.6); /* colore con alpha */
  backdrop-filter: blur(10px); /* effetto blur dietro */
  -webkit-backdrop-filter: blur(10px); /* compatibilità Safari */
  color: var(--black);
  font-size: var(--font-s);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.SelectedWorks .WorksGrid .work:hover .tags {
  opacity: 1;
  filter: blur(0px);
}

.SelectedWorks .WorksGrid .textWrapper {
  margin-top: 12px;
}

.SelectedWorks .WorksGrid .textWrapper h2 {
  font-size: var(--font-base);
  color: var(--black);
}

.SelectedWorks .WorksGrid .textWrapper p {
  font-size: var(--font-base);
  color: var(--gray);
}

/* --- Responsive --- */
@media (max-width: 800px) {
  .SelectedWorks h1 {
    font-size: var(--font-l);
  }

  .SelectedWorks .WorksGrid {
    grid-template-columns: 1fr;
  }

  .SelectedWorks .WorksGrid .textWrapper p,
  .SelectedWorks .WorksGrid .textWrapper h2 {
    font-size: var(--font-s);
  }
}


/*------ Resources ------*/

.Resources {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 120px 0;
  gap: 32px;
  background-color: var(--white2);
}

.Resources .titleWrap {
  align-items: center;
}


.Resources p {
  color: var(--gray);
  text-align: center;
  max-width: 600px;
}

.Resources .BtnWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 24px;
}

.Resources .BtnWrapper p {
  font-size: var(--font-base);
}

@media (max-width: 800px) {

  .Resources {
      padding: 120px 30px;
      box-sizing: border-box;
      align-items: start;
  }

  .Resources .titleWrap {
    align-items: start;
  }

  .Resources .BtnWrapper .button {
    align-self: flex-start;
  }

  .Resources p {
    text-align: left;
  }
}


/* #endregion */

/* #region Resources*/
.resources{
  background-color: var(--white);
}

.resources .titleParagWrapper {
  margin: calc(3.2rem + 120px) auto 120px auto;
  width: 100%;
  max-width: 1060px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.resources .titleParagWrapper p {
  font-size: var(--font-base);
  color: var(--gray);
  margin-top: 24px;
  width: 500px;

}

.resources > h1 {
  margin: 120px auto 40px auto;
  width: fit-content;
  font-size: var(--font-l);
}


.featured {
  background-color: var(--white2);
  width: 100%;
  padding: 60px 0 50px 0;
}

.featured > h1 {
  font-size: var(--font-l);
  margin: 0 auto 20px auto;
  max-width: 1060px;
}

.featured .SpotlightWrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  font-size: var(--font-l);
  margin: 0 auto 0px auto;
  max-width: 1060px;
}

.featured .SpotlightWrapper .item {
  flex: 0 0 auto;
}


.featured .item,
.grid-container .item {
  background-color: var(--white);
  border: 1px solid var(--gray2);
  width: 250px;
  height: 160px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 6px;
  transition: transform 0.2s ease-in-out;
}

.featured .item:hover,
.grid-container .item:hover {
  transform: translateY(-5px);
}

.featured .item h1,
.grid-container .item h1 {
  font-size: var(--font-base);
  color: var(--black);
}

.featured .item p,
.grid-container .item p {
  font-size: var(--font-s);
  color: var(--gray);
}

.featured .item .upperRow,
.grid-container .item .upperRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.featured .item .upperRow div:nth-child(2),
.grid-container .item .upperRow div:nth-child(2) {
  font-size: var(--font-base);
  color: var(--gray);
  transition: color 0.2s ease-in-out;
}

.featured .item:hover .upperRow div:nth-child(2),
.grid-container .item:hover .upperRow div:nth-child(2) {
  color: var(--black);
}

.featured .item .upperRow .upperRowTags,
.grid-container .item .upperRow .upperRowTags{
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 5px;
  width: 100%;
}

.featured .item .upperRow .tag,
.grid-container .item .upperRow .tag {
  border: 1px solid var(--gray2);
  border-radius: 6px;
  font-size: var(--font-xs);
  color: var(--gray);
  padding: 2px 6px;
  box-sizing: border-box;
}

.featured .item .upperRow .paid,
.grid-container .item .upperRow .paid {
  border-radius: 6px;
  font-size: var(--font-xs) !important;
  color: var(--white) !important;
  background-color: #36454F;
  border: 1px solid #36454F;
  padding: 2px 6px;
  box-sizing: border-box;
}

.RefreshWrap{
  width: 100% !important;
  max-width: 1060px;
  margin: 0 auto 40px auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 120px;
}

.RefreshWrap a{
  padding: 7px 11px;
  transform: translateY(2.5px);
}

.resourceTitle {
  font-size: var(--font-l);
}

.button_filter_container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 20px auto;
  max-width: 1060px;
}

.button_filter_container .button {
  white-space: nowrap;
  min-width: fit-content;
  border: 1px solid var(--gray2);
  cursor: pointer;
}

#refreshBtn {
   cursor: pointer;
}

.button_filter_container .button.active .text span {
  transform: translateY(-110%);
}

.button_filter_container .button.active .ripple span {
  transform: translateY(0);
  border-radius: 0;
  transition-duration: 0.5s, 0.9s;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr)); /* min 220px, max prende spazio disponibile */
  gap: 20px; /* gap fisso */
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 0 auto;
  height: 520px; /*160*3 righe di elementi + 20*2 gap */
  align-content: start;
  box-sizing: border-box;
}

.grid-container .item {
  width: 100%;
  aspect-ratio: 250/160;
  background-color: var(--white);
  border: 1px solid var(--gray2);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 6px;
  transition: transform 0.2s ease-in-out, opacity 0.3s ease;
  opacity: 0;
  display: none;
}

.grid-container .item p {
  height: 2rem;
}

.item.show {
  transform: scale(1);
  opacity: 1;
  display: flex;
}

.pagination-controls-wrapper {
    display: flex;
    justify-content: flex-end; /* Sposta il contenitore a destra */
    margin: 40px auto 40px auto;
    width: 100%;
    max-width: 1060px;
    padding-top: 20px;
    border-top: solid 1px var(--gray2);
    height: 85px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}


.pagination-controls .button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* -------------------------
   Responsive Styles
------------------------- */
@media (max-width: 1100px) {
  .featured > h1,
  .resourceTitle {
    margin-left: calc(var(--padding) * 1.5 );
    
  }

  .featured .SpotlightWrapper{
    margin-left: calc(var(--padding) * 1.5 );
  }

  .resources .titleParagWrapper {
    padding: 0 calc(var(--padding) * 1.5 );
  }

  .resources .titleParagWrapper p {
    margin-top: 40px;
  }

  .resources .grid-container {
    padding: 0 calc(var(--padding) * 1.5 );
    margin: 0px;
  }

  .button_filter_container {
    padding: 0 calc(var(--padding) * 1.5 );
  }

  .resources .titleParagWrapper {
    width: auto;
  }

  .resourceTitle {
    width: auto !important;
  }

  .RefreshWrap {
    margin-left:  0px;
  }

  .grid-container{
    height: 700px; /*160*4 righe di elementi + 20*3 gap */
    max-width: none;
  }

  .pagination-controls-wrapper {
    margin: 40px calc(var(--padding) * 1.5 );
    width: auto;
  }


}


@media (max-width: 861.5px) {
  .grid-container {
    margin-bottom: 60px;
  }

  .button_filter_container {
    gap: 12px;
  }

  .button_filter_container .button,
  .button_filter_container .text {
    font-size: var(--font-base);
  }

  .featured {
    padding: 60px 0;
  }

  .resources .titleParagWrapper h1 {
    font-size: var(--font-xl);
  }

  .resources .titleParagWrapper p {
    margin-top: 40px;
  }

  .grid-container{
    height: 1060px; /*160*6 righe di elementi + 20*5 gap */
  }
}


@media (max-width: 600px) {
  .grid-container {
    height: auto;
  }

  .grid-container .item {
    width: 100%;
  }

  .resources .titleParagWrapper p{
    width: 100%;
  }
}

/* #endregion*/


