/*
Theme Name: Colori e Voci per Gaza
Theme URI:  https://www.wpserveur.net
Author:     Wonna
Author URI: https://www.wpserveur.net
Template:   astra
Version:    1.0
License:    GNU General Public License v2 or later
*/

.ast-single-post.ast-page-builder-template .site-main > article, .woocommerce.ast-page-builder-template .site-main, .ast-page-builder-template .post-navigation{
	padding:0px;
}

.site-content .ast-container{
	display:block;
}

.ast-container, .ast-container-fluid{
	padding:0px;
}

.poem-title{
	text-transform:none!important;
	letter-spacing:0px!important;
}

.page-id-8 .site-content{
	background:#000;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link:hover{
	color:#990014;
}


.ast-header-break-point .main-navigation .stack-on-mobile li {
	text-align:center;}

/* Preload */
/* Prevenzione scatto durante il caricamento */
.ethereal-gallery-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.ethereal-gallery-container.loaded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Loading overlay opzionale */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.page-loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* Spinner opzionale */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top: 3px solid #990014;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mejs-controls .mejs-time-rail .mejs-time-current{
	background: #990014!important;
}

@media(max-width:900px){
	.intro-text{
		padding:0px 20px;
	}
	.poetry-section{
		padding:0px 20px;
	}
}

@media(max-width:768px){
	.site-title {
		text-align:left;}
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #f9f9f9;
}

.ethereal-gallery-container {
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Gallery Header */
.gallery-title {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin: 20px 0 10px;
    color: #000;
	letter-spacing: 4px;
}

.gallery-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #000;
    margin-bottom: 50px;
	letter-spacing: 4px;
}

/* Slider Styles */
.artwork-slider-section {
    margin-bottom: 80px;
	margin-left:2rem;
	margin-right:2rem;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.artwork-container {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.artwork-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f9f9f9;
}

.artwork-image:hover {
    transform: scale(1.02);
}

.artwork-info {
    padding: 20px;
    text-align: center;
    background: white;
}

/* CORREZIONE: Layout artwork-details uniforme */
.artwork-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.artist-name {
    font-size: 1.3rem;
    color: #000;
    font-weight: bold;
    margin: 0;
}

.artwork-title {
    font-size: 1.3rem;
    color: #000;
    margin: 0;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #eaeaea;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.prev-btn {
    left: 20px;
	color:#000;
}

.next-btn {
    right: 20px;
	color:#000;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #000;
}

/* Fix Lightbox per Mobile Landscape */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Manteniamo 100vh per desktop */
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh; /* Per desktop */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
/* Responsive: Tablet Portrait e Mobile Portrait */
@media screen and (max-width: 768px) and (orientation: portrait) {


  
  .lightbox-image {
    max-height: 60vh;
  }
}

/* NUOVO: Fix specifico per Mobile Landscape */
@media screen and (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
  /* Video fix per landscape */
  video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }

  .overlay {
    width: 100vw;
    height: 100vh;
    padding: 0.5em;
  }

  .overlay h1 {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.8em;
  }

 
  
  /* Lightbox fix per landscape */
  .lightbox-overlay {
    height: 100vh;
    padding: 10px;
  }
  
  .lightbox-content {
    max-height: 100vh;
  }
  
  .lightbox-image {
    max-height: 85vh; /* Aumentiamo per sfruttare la larghezza */
    max-width: 90vw;
  }
  
  .lightbox-info {
    margin-top: 10px;
    padding: 0 5px;
  }
  
  .lightbox-artist,
  .lightbox-title {
    font-size: 0.9rem;
  }
  
  .lightbox-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .lightbox-close {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

/* Mobile Portrait Piccolo */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .overlay h1 {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1em;
  }

  
  .lightbox-image {
    max-height: 50vh;
  }
  
  .lightbox-artist,
  .lightbox-title {
    font-size: 1rem;
  }
}



/* Modifica CSS per il lightbox - nome e titolo sulla stessa riga */
/* Lightbox info - tutto su una riga */
.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 20px;
    display: block; /* Semplificato */
}

.lightbox-artist {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    display: inline; /* Inline per stare sulla stessa riga */
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    display: inline; /* Inline per stare sulla stessa riga */
	margin-left:-3px;
}


.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.7);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Intro Section */
.intro-section {
    margin-bottom: 80px;
    text-align: center;
}
	
.intro-poesie {
	margin: 0px auto;
    text-align: left;
	display:flex;
	flex-direction:column;
	align-items:start;
	justify-content: start;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	max-width:800px;
	border-radius:8px;
	-webkit-border-radius:8px;
	-moz-border-radius:8px;
	background: #fff;
	border-left: 2px solid #990014;
	padding: 20px 0px 0px;
	margin-bottom: 60px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000;
    max-width: 800px;
    margin: 0 auto;
}

/* Poetry Section */
.poetry-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
	padding: 10px 0px;
	margin-bottom: 60px;
}

.accordion-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-header {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
	border-left: 2px solid #990014;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #eaeaea;
}

.poem-info {
    flex: 1;
    display: flex;
    gap: 5px;
}

.poem-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #000;
}

.poem-author {
    color: #000;
    font-size: 1.3rem;
    margin-bottom:0px;
    
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.poem-text {
    padding: 20px 30px;
    font-size: 1.1rem;
    line-height: 2.3em;
    color: #000;	
}

.poem-text p {
    margin-bottom: 20px;
}

.poem-text-2 {
    padding: 65px;
    font-size: 1.1rem;
    line-height: 2.3em;
    color: #000;	
}

.poem-text-2 p {
    margin-bottom: 20px;
}

/* Responsive Design */
	
@media(max-width:900px){
	.poem-text, .poem-text-2 {
		max-width:100%;
    }
	
	.intro-poesie{
		padding:20px 0px;
	}
}

@media (max-width: 768px) {
    .ethereal-gallery-container {
        padding: 0 15px;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
	
	.artwork-slider-section{
		margin-left: 0px;
		margin-right: 0px;
	}
    
    .artwork-image {
        height: 300px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* CORREZIONE: Lightbox mobile - dimensioni e posizionamento */
    .lightbox-overlay {
        padding: 10px;
    }
    
    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .lightbox-info {
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .lightbox-artist,
    .lightbox-title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .accordion-header {
        padding: 12px 20px;
    }
    
    .poem-text, .poem-text-2 {
        padding: 20px;
		max-width:100%;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .artwork-image {
        height: 250px;
    }
    
    /* CORREZIONE: Lightbox mobile piccolo - ulteriori aggiustamenti */
    .lightbox-overlay {
        padding: 5px;
    }
    
    .lightbox-image {
        max-height: 50vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .lightbox-artist,
    .lightbox-title {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .poem-title {
        font-size: 1.1rem;
    }
}
	
/* Titoli di coda */
/* Sezione principale */
.credits-section {
    padding: 0 0 60px 0;
    margin-top: 80px;
}

/* Titolo scorrevole */
.scrolling-title-container {
    background: #000;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    white-space: nowrap;
}

.scrolling-title {
    display: inline-block;
            animation: scrollTitle 105s linear infinite;
            color: white;
            font-size: 18px;
            font-weight: bold;
}


        @keyframes scrollTitle {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
}

.title-text {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    white-space: nowrap;
	padding-right: 10px; /* Spazio tra le ripetizioni */
}

/* Contenuto principale */
.credits-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.credit-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-left:2px solid #990014;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.credit-item.large {
    grid-column: span 2;
}

.credit-item.full-width {
    grid-column: 1 / -1;
}

.credit-role {
    font-size: 1.3rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.credit-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 3px;
    line-height: 1.4;
}

.detail {
    font-size: 1rem;
    color: #000;
    font-style: normal;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Lista partner */
.partners-list p {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.partners-list p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.partners-list strong {
    font-size: 1.2rem;
    color: #000;
}

/* Colonne artisti */
.artists-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.artist-column p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    line-height: 1.5;
}

.artist-column strong {
    color: #000;
    font-size: 1.1rem;
}

.artist-type {
    color: #000;
    font-size: 1.1rem;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .title-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .credits-content {
        padding: 40px 20px;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .credit-item.large,
    .credit-item.full-width {
        grid-column: 1;
    }
    
    .credit-item {
        padding: 25px;
    }
    
    .artists-columns {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

@media (max-width: 480px) {
    .title-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .credit-role {
        font-size: 1.1rem;
    }
    
    .credit-name {
        font-size: 1.2rem;
    }
}

/* Footer finale */
.credits-footer {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 20px;
    margin-top: 40px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.year {
    font-size: 1.4rem;
    color: #000;
    font-weight: 500;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #990014, #990014);
    margin: 20px auto 0;
    border-radius: 2px;
}

@media (max-width: 1024px){
	   .artists-columns {
         grid-template-columns: 1fr; /* 2 colonne */
        gap: 0px;
    }
	
}

/* Responsive */
@media (max-width: 768px) {
    .title-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .credits-content {
        padding: 40px 20px;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .credit-item.large,
    .credit-item.full-width {
        grid-column: 1;
    }
    
    .credit-item {
        padding: 25px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .artists-columns {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

@media (max-width: 480px) {
    .title-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .credit-role {
        font-size: 1.1rem;
    }
    
    .credit-name {
        font-size: 1.2rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
}
	
	.artwork-details-mob {
    display: none;
}

@media (max-width: 768px) {
    .artwork-details {
        display: none;
    }
    .artwork-details-mob {
        display: block;
    }
}

/* Privacy Policy */
.privacy-policy-wrapper{
	padding:50px;
}

/* Video */

#bgVideo {
  width: 100%;
  height: 90vh; /* ALTEZZA LIMITATA PER LASCIARE SPAZIO A HEADER/FOOTER */
  object-fit: contain;
  display: block;
  background-color: black;
  position: relative;
  z-index: 1;
}

/* -------------------------
   Overlay
-------------------------- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90vh; /* Overlay allineato al video */
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1em;
  z-index: 2;
}

/* Titolo */
.overlay h1 {
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 1.5em;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Bottone Play */
.play-button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.play-icon {
  font-size: 2rem;
  transform: translateX(2px);
  color: white;
}

/* -------------------------
   Responsive
-------------------------- */

/* Tablet */
@media screen and (max-width: 768px) {
  .overlay h1 {
    font-size: 1.2rem;
    margin-bottom: 1.2em;
    letter-spacing: 2px;
  }

  .play-button {
    width: 70px;
    height: 70px;
  }

  .play-icon {
    font-size: 1.8rem;
  }
}

/* Smartphone */
@media screen and (max-width: 480px) {
  .overlay h1 {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1em;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    font-size: 1.5rem;
  }
}

/* Landscape mobile */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  #bgVideo,
  .overlay {
    height: 90vh !important;
    object-fit: contain !important;
  }

  .overlay h1 {
    font-size: 1rem;
    margin-bottom: 1em;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    font-size: 1.5rem;
  }
}
