/*==============================
GENERAL STYLES
==============================*/

@import url(https://fonts.googleapis.com/css?family=Anton|Maven+Pro:500,700);
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
/*******************************************/
/** Fonts **/ 
/*******************************************/



/*******************************************/
/** Content **/ 

/* Make sure the body takes full height */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

/* Main content container (body wrapper) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-size: 16px;
}

/* Regular content area */
.content {
  flex-grow: 1;  /* Takes up all available space */
  margin-top: 20vh;
}
.content.index{
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul a{
  text-decoration: none;
  font-style: italic;
  color: black;
}


ul a:hover{
  color: #8DBF95;
}

.content-container2 a, .content-container6 a{
  text-decoration: none;
  font-style: italic;
  color: black;
}

.content-container2 a:hover, .content-container6 a:hover{
  color: #8DBF95;
}


/** new navigationbar **/
.page-container{
  display: flex;
  flex-direction: row;
  height: auto;
  width: 100vw;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 2vw;
}

.nav-container{
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  width:20%;
  min-height: 100vh;
  max-width: 500px;
  min-width: 200px;
}

.cont-container{
  flex-grow: 1;  /* Takes up all available space */
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.cont-container.index{
  justify-content: center;
  align-items: flex-start;
}

.cont-container.about{
  align-items: center;
}


.cont-container .text{
  max-width: 700px;
  padding: 15px;
}

.nav-item1{
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1em;
}

.nav-item1 a{
  text-decoration: none;
  color: black;
}

.nav-item2 a{
  text-decoration: none;
  color: black;
}

.nav-item2{
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 480px) {
  .page-container{
    flex-direction: column;
     min-height: 100vh; 
  }
  .nav-container{
    min-height: auto;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid black;
  }
  .cont-container{
    min-height: auto;  /* Qua in realta dovrei sottrarre l'altezza del navbar */
    width: 100%;
    flex: 1;
  }
  .cont-container.index{
    justify-content: flex-start;
    align-items: center;
  }

  .single-image-container {
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-width: 100%;
    background-size: cover;
  }

  .random-image1, .random-image2, .random-image3, .random-image4, .random-image5, .random-image6, .random-image7, .random-image8  {
    width: auto;
    height: 200vh;
  }

}


/** Header **/
.header {
  display: flex;
  flex-direction: column; /* stack title/logo and navbar */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: white;

}

/* Inside .header, logo/title row */
.header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;
  height: 60px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.header-top img{
  height: 6vh;
  max-height: 60px;
}

.header-top a{
  text-decoration: none;
  color: black;
}

/* Navbar */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0px 20px;
  background-color: white;
  gap: 3%;
  font-size: 1.2rem;
  height: 30px;
}

.navbar2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid black;
  background-color: white;
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  padding: 0px 20px;
   gap: 3%;
}

.navbar2 .item1{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 3%;
  font-size: 1.2rem;
  box-sizing: border-box;
  width: 90%;
  height: 100%;
}

.navbar a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.navbar a:hover {
  text-decoration: none;
  color: #8DBF95;
}


/***** Footer *****/
/* Footer styles */
.site-footer {
  background-color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 1rem;
  z-index: -10;
  display: none;
}

/* Footer navigation */
.footer-nav {
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-menu li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: #8DBF95;
}

/* Footer info */
.footer-info {
  font-size: 0.8rem;
  color: black;
}

.footer-logo img {
  width: 29%;
  max-width: 150px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
  .navbar {
    font-size: 1rem;
  }
  .footer-info {
    font-size: 0.6rem;
  }
  .site-footer {
    font-size: 0.8rem;
  }
}

/** Images **/
.full-width-image {
    width: 100vw;      /* 100% of the viewport width */
    height: auto;      /* maintain aspect ratio */
    display: block;    /* removes bottom spacing if inside inline elements */
}

.small-image{
    width: 15%;
    min-width: 80px;
}

.single-image-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.random-image1, .random-image2, .random-image3, .random-image4, .random-image5, .random-image6, .random-image7, .random-image8 {
  position: absolute;
  transition: transform 0.2s ease-in-out;
  width: 200vh;
  object-fit: cover;
  filter:opacity(5%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.single-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter:opacity(65%);
} 

.central-image {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 40%;
  filter: sepia(20%) hue-rotate(-10deg) saturate(120%) opacity(60%);
}

.conchiglia-image {
  position: absolute;
  top: 30%;
  left: 42%;
  width: 15%;
  filter: sepia(20%) hue-rotate(-10deg) saturate(120%) opacity(80%);
   transition: transform 0.1s linear;
}

iframe.book{
  width: 80%;
  height: 600px;
  border: none;
  margin-bottom: 10%;
}


  @media (max-width: 480px) {
      .central-image {
        width: 60%;
      }
      .conchiglia-image {
        width: 25%;
        left: 36%;
        top: 30%;
      }

      iframe.book{
         width: 100%;
      }

    }


.single-image-portrait {
  width: 50%;
  max-width: 300px;
  margin: 10px auto;
  box-sizing: border-box;
} 

.double-image-portrait {
  width: 50%;
  max-width: 300px;
  box-sizing: border-box;
} 

.single-image-double {
  width: 50%;
  max-width: 900px;
  margin: 10px auto;
  box-sizing: border-box;
} 


.small-image2{
    width: 15%;
    min-width: 80px;
    margin-left: auto;
    margin-right: auto;
}


.image-frame {
  flex: 1 1 50%;         /* takes up 50% of the container */
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.image-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-frame2 {
  flex: 1 1 100%;         /* takes up 100% of the container */
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.image-frame2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.90);
}

.logo-icon{
  top: -30px !important;
  right: 15% !important;
  left: auto !important;
  width: 30% !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

.image-frame2 .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  width: 80%;
}
.image-frame2 .logo {
  position: absolute;
  top: 10%;
  left: 10%;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  height: 50%!important;
  width: auto!important;
}

.image-frame2 .subtitle {
    position: absolute;
    top: 10%;
    right: 10%;
    text-align: right;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
  }


/** content boxes **/
.content-container1{
    width: 100vw;       /* full viewport width */
    min-height: 70vh;   /* minimum height */
    padding: 10%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    font-size: 2rem;
}

.content-container2{
    width: 100vw; 
    max-width: 1500px;  
    margin: 0 auto;    /* full viewport width */
    min-height: 10vh;   /* minimum height */
    padding: 10%;
    box-sizing: border-box;
    display: flex;
    font-size: 1.4rem;
    flex-direction: column;
    gap: 10px;
}

.content-container3{
    width: 100vw;       /* full viewport width */
    min-height: 70vh;   /* minimum height */
    box-sizing: border-box;
    display: flex;
    font-size: 1.4rem;
    flex-direction: row;
    gap: 10px;
    margin: 15px 0px;
}

.content-container4{
    flex: 1 1 50%;
    min-height: 70vh;    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5%;
}

.content-container5{
    flex: 1 1 50%;  
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
    padding: 5%;
}

.content-container5 img{
  width: 20%;
  min-width: 80px;
}

.content-container6{
    width: 100vw;  
    max-width: 1500px;  
    margin: 0 auto;       /* full viewport width */
    min-height: 70vh;   /* minimum height */
    padding: 0% 10%;
    box-sizing: border-box;
    display: flex;
    font-size: 1.4rem;
    flex-direction: column;
    gap: 10px;
}

.content-container7{
    width: 100vw;       /* full viewport width */
    min-height: 70vh;   /* minimum height */
    padding: 0% 10%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.content-container7 img{
  width: 50%;
  min-width: 80px;
}


@media (max-width: 480px) {
  .content-container1 {
    font-size: 1.4rem;
  }
  .content-container2, .content-container3, .content-container4, .content-container6 {
    font-size: 1rem;
  }

  .image-frame2 .logo {
    height: 30%!important;
  }

}

/*** Grid ***/

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 15px;
  max-width:1300px;
  margin-left: 0;
  margin-right: auto;
}

.grid-item-portrait {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  max-width: 350px;
  aspect-ratio: 3/4;
}

.grid-item-landscape{
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  max-width: 350px;
  aspect-ratio: 4/3;
}



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

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

.grid-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto;
  max-width: 350px;
  aspect-ratio: 3/4;
}

.grid-item:hover {
    filter: brightness(0.8);
}

.grid-item .grid-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.grid-item .grid-item-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  height: 25%;
}


.grid-item .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  width: 80%;
}

.grid-item .subtitle {
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: right;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.edition1.grid-item .title, .edition1.grid-item .subtitle, .image-frame2.edition1 .title, .image-frame2.edition1 .subtitle  {
  color: #8DBF95;
}

.edition2.grid-item .title, .edition2.grid-item .subtitle, .image-frame2.edition2 .title, .image-frame2.edition2 .subtitle {
  color: #e0e178;
}



@media (max-width: 600px) {
  .grid-item .title {
    font-size: 1.8rem;
  }
  .grid-item .subtitle{
    font-size: 0.6rem;
  }

}
@media (max-width: 480px) {
  .grid-item .title {
    font-size: 1rem;
  }
  .grid-item .subtitle{
    font-size: 0.5rem;
  }

}


/*******************************************/


.masonery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 10px; /* base row height */
  gap: 10px;
}

.masonery-grid-item {
  display: block;
}

.masonery-grid-item img {
  width: 100%;
  display: block;
}

/* Trick to make items span multiple rows */
.masonery-grid-item {
  grid-row-end: span var(--row-span);
}

/*******************************************/

.image-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  padding: 15px;
  box-sizing: border-box;
  margin-bottom: 15px;
}


.landscape-img {
  max-width: 700px;
  width: 100%;
  height: auto;
}

.portrait-img {
  max-height: 700px;
  height: 100%;
  width: auto;
  margin: 0 auto;
}


@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center; 
    padding: 0px;
    width: 100%;
  }
  .landscape-img {
    max-width: 400px;
  }
  .portrait-img {
    max-height: 400px;
    margin: 0 auto;
  }
}



/* Cavanei */
.three-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.three-image-row img {
  width: 100%;
  height: auto;
  display: block;
}


/* Artists */

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 5%;
  justify-content: center;
  margin-bottom: 30vh;
  margin-top: 5%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1500px;

}

.artist-card {
  width: 150px;
  text-align: center;
  cursor: pointer;
}

.artist-card a{
  text-decoration: none;
}
.artist-card .artist-name {
  margin-top: 8px;
  font-size: 0.8rem;
  color: black;
  transition: color 0.3s ease; /* Moved here for smooth hover in/out */
}

.artist-card:hover .artist-name {
  color: #8DBF95;
}

.artist-card img {
  width: 100%;
  height: auto;
  display: block;
}


