/*
Theme Name: tema child
Version: 1.0
Description: A child theme of Divi
Template: Divi
Author: Amministratore
*/
@import url("../Divi/style.css");
/* Your awesome customization starts here */

h1, h2, h3, h4, h5 {
  	font-family: 'PT Serif', serif;
	line-height:1!important;
	
}



p{
	font-family: 'PT Sans', sans-serif;
}


/*menu*/
header#main-header.scrolled-fixed {
    background-color: rgba(255, 255, 255, 1) !important;
}

body header#main-header.scrolled-fixed {
    background-color: rgba(255, 255, 255, 1) !important;
}

header#main-header.scrolled-fixed #top-menu li a {
    color: #000000 !important;
}

header#main-header.scrolled-fixed .et_mobile_menu li a {
    color: #000000 !important;
}

header#main-header.scrolled-fixed .select_page {
    color: #000000 !important;
}


#logo {
    transition: filter 0.4s ease;
}

body header#main-header.scrolled-fixed #logo {
    filter: invert(1);
}

/* Burger nero solo nelle singole opere */
body.single-opera #main-header .mobile_menu_bar:before {
    color: #000 !important;
}


#mobile_menu {
    background-color: #fff !important;
}

.et_mobile_menu li a {
    color: #000 !important;
}


/*fine menu*/

/*footer*/
.footer-row p{
	padding-bottom:0px!important;
}


.footer-section a:hover {
    text-decoration: underline!important;
}

/*fine footer/*


/*animazione bottoni*/
.btn-hover-scroll .et_pb_button {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  transition: none;
}

.btn-hover-scroll .et_pb_button::before,
.btn-hover-scroll .et_pb_button::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  /*color: #ffffff; /* metti qui il colore originale del testo */
  transition: transform 0.35s ease;
}

.btn-hover-scroll .et_pb_button::before {
  top: 50%;
  transform: translateY(-50%);
}

.btn-hover-scroll .et_pb_button::after {
  top: 150%;
  transform: translateY(-50%);
}

.btn-hover-scroll .et_pb_button:hover::before {
  transform: translateY(-250%);
}

.btn-hover-scroll .et_pb_button:hover::after {
  top: 50%;
  transform: translateY(-50%);
}

/*fine animazione bottoni*/

/*bottone con freccia*/
.exhibition-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #111;
  line-height: 1;
}

.exhibition-link .exhibition-label {
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  line-height: 1;
}

.exhibition-link .arrow-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.exhibition-link .arrow-char {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  line-height: 1;
  font-size: 1em;
}

.exhibition-link:hover .arrow-char {
  animation: exhibitionArrowLoop 1.4s ease-in-out infinite;
}

@keyframes exhibitionArrowLoop {
  0% { transform: translate(0, -50%); opacity: 1; }
  40% { transform: translate(14px, -50%); opacity: 0; }
  41% { transform: translate(-14px, -50%); opacity: 0; }
  70% { transform: translate(-14px, -50%); opacity: 1; }
  100% { transform: translate(0, -50%); opacity: 1; }
}

/*fine bottone con freccia*/


/*parallasse home*/
/* === Sezione bianca sticky che viene "scoperta" === */
#original-canvas-hero {
  position: -webkit-sticky;
  position: sticky;
  top: 2;
  z-index: 1;
  background-color: #ffffff;
}

/* === Sezione con foto a piena altezza che sale sopra === */
#parallax-reveal {
  position: relative;
  z-index: 0;
  background-attachment: fixed; /* fallback parallax leggero */
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

/* Testo che cambia opacità via JS (classe target) */
#parallax-reveal .reveal-text {
  opacity: 0;
  transition: opacity 0.15s linear;
  will-change: opacity;
}

/* Su mobile, attenzione: background-attachment:fixed può scattare male su iOS, quindi lo disabilitiamo lì */
@media (max-width: 980px) {
  #parallax-reveal {
    background-attachment: scroll;
  }
}



/*form contatti*/

.wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Riga con Name / Email affiancati */
.wpcf7-form .row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.wpcf7-form .col-6 {
  flex: 1;
}

/* Reset paragrafi generati da CF7 */
.wpcf7-form p {
  margin: 0;
}

/* Stile comune per input e textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #333;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  border-color: #a0a0a0;
}

.wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
  margin-bottom: 25px;
}

/* Asterisco rosso obbligatorio */
.wpcf7-form .required-mark {
  color: #e02b27;
  margin-left: 3px;
}

/* Bottone di invio */
.wpcf7-form input[type="submit"] {
  display: block;
  margin: 0 auto;
  background-color: #2e1a19;
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #1a0e0d;
}

/*fine form contatti*/


/*form di acquisto*/

.cf7-inquiry-form textarea.wpcf7-form-control {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

.cf7-inquiry-form .cf7-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

.cf7-inquiry-form .wpcf7-list-item {
  margin: 0;
}

.cf7-inquiry-form .wpcf7-list-item-label {
  display: inline;
}

.cf7-inquiry-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #1a1a1a;
  cursor: pointer;
}


#form-acquisto p{
	padding-bottom:0px!important;
}


#form-acquisto .et_pb_row.et_flex_row {
  width:100%!important;
}



/*fine form di acquisto*/

/*template opere*/

body.opera-template-default #top-menu li a {
    color: #000000 !important;

}

body.opera-template-default #logo {
    filter: invert(1);
}
/*fine template opere */




/*pagina opere*/




.opere-wrapper {
    width: 100%;
}

/* Header con contatore + toggle vista */
.opere-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.opere-count {
    font-size: 0.95rem;
    color: #666;
}

.opere-view-toggle {
    display: flex;
    gap: 8px;
}

.opere-view-btn {
    background: none;
    border: 1px solid transparent;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
}

.opere-view-btn:hover,
.opere-view-btn.active {
    background: #f0f0f0;
}

.icon-grid {
    display: grid;
    gap: 2px;
    width: 20px;
    height: 20px;
}
.icon-grid span {
    background: #333;
    border-radius: 1px;
}
.icon-grid-3 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.icon-grid-7 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }

/* GRIGLIA OPERE */
.opere-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.opere-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.opere-grid.cols-7 {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.opera-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.opera-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.opera-card:hover .opera-img {
    transform: scale(1.05);
}

.opera-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.opera-card:hover .opera-overlay {
    opacity: 1;
}

.opera-titolo {
    font-size: 1.2rem;
    margin: 0 0 8px;
    font-weight: 600;
	color:#fff!important;
}

.opera-misure,
.opera-materiali {
    font-size: 0.85rem;
    margin: 3px 0;
    opacity: 0.9;
}

/* Bottone Mostra di più */
.opere-loadmore-wrap {
    text-align: center;
    margin-top: 30px;
}

.opere-loadmore-btn {
    padding: 12px 30px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.opere-loadmore-btn:hover {
    background: #333;
}

.opere-loadmore-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Responsive */
@media (max-width: 980px) {
    .opere-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .opere-grid.cols-7 { grid-template-columns: repeat(4, 1fr); }
	
	
	h1{
		font-size:40px!important;
	}
	
	.opere-view-toggle{
		display:none!important;
	}
	
	.opera-titolo {
		font-size: 16px!important;
	}
	
	
}

@media (max-width: 600px) {
    .opere-grid.cols-3,
    .opere-grid.cols-7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
