/*
Theme Name: Astra Child - Francesco Caligiuri
Theme URI: https://francescocaligiuri.com
Description: Minimalist light restyling theme inspired by Bearzatti website.
Author: Web Development Team
Template: astra
Version: 1.0.0
*/

/* --- Global Reset & Light Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111111;
    background-color: #fbfbfb;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #111111;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.5;
}

/* --- Fixed Frame: Minimal Header & Navigation --- */
.site-header-minimal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 35px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background: transparent;
}

.site-title-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #111111;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.main-navigation a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: #111111;
}

/* --- Page Frame & Container --- */
.site-main-frame {
    min-height: 100vh;
    padding: 140px 50px 100px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.page-title-minimal {
    font-size: 1.3rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Homepage Fullscreen Hero --- */
body.home .site-main-frame {
    padding: 0;
}

.hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('https://francescocaligiuri.com/wp-content/uploads/bg-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}

/* --- Biography Lightened Background Frame --- */
body.page-id-100002 .site-main-frame {
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), 
                url('https://francescocaligiuri.com/wp-content/uploads/bg-hero.jpg') center/cover fixed no-repeat;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #222222;
    font-weight: 300;
}

/* --- Publications & Discs Item Layouts --- */
.item-entry {
    padding: 22px 0;
    border-bottom: 1px solid #eeeeee;
}

.item-year {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
}

.item-details {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 300;
}

.spotify-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border: 1px solid #111111;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111111;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.spotify-link:hover {
    background-color: #111111;
    color: #ffffff;
    opacity: 1;
}

/* --- Fixed Footer --- */
.site-footer-minimal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666666;
    background: transparent;
    box-sizing: border-box;
    z-index: 1000;
}

.social-links a {
    margin-left: 20px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .site-header-minimal, .site-footer-minimal {
        padding: 20px 25px;
        position: relative;
        background: #ffffff;
    }

    .site-header-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .main-navigation ul {
        gap: 15px;
        flex-wrap: wrap;
    }

    .site-main-frame {
        padding: 30px 25px 50px 25px;
    }

    .site-footer-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}


/* --- Homepage Fullscreen Hero Image --- */
.home .site-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    /*background: url('https://francescocaligiuri.com/wp-content/uploads/2019/07/foto-iniziale-prova-1.jpg') center/cover no-repeat;*/
    display: flex;
    align-items: flex-end;
}

.cpt-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.album-item {
  display: flex;
  flex-direction: column;
}

.album-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.album-cover img:hover {
  opacity: 0.9;
}

.album-title {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.25rem 0;
  font-weight: 600;
}

.album-title a {
  text-decoration: none;
  color: inherit;
}

.album-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.spotify-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #1ed760;
  text-decoration: none;
  font-weight: 500;
}

.spotify-link:hover {
  text-decoration: underline;
}


/* Responsive Grid Container */
.pubblicazioni-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Individual Publication Card */
.pubblicazione-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Book / Publication Cover */
.pub-cover {
  width: 100%;
  margin-bottom: 0.75rem;
}

.pub-cover img {
  width: 100%;
  aspect-ratio: 3 / 4; /* Standard ratio for books & sheet music */
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.pub-cover img:hover {
  opacity: 0.9;
}

/* Content Details Container */
.pub-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-year {
  font-size: 0.8rem;
  color: #888888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem 0;
  color: #111111;
  line-height: 1.35;
}

.pub-excerpt p {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.pub-meta {
  font-size: 0.85rem;
  color: #666666;
  margin-top: auto; /* Keeps publisher/ISBN anchored at the bottom */
  margin-bottom: 0.5rem;
}

.pub-link {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111111;
  text-decoration: underline;
  font-weight: 500;
}

.pub-link:hover {
  opacity: 0.7;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  .pubblicazioni-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }

  .pub-title {
    font-size: 1rem;
  }

  .pub-excerpt {
    display: none; /* Keeps mobile view clean & compact */
  }
}