/* 
Theme Name: Polvanera theme Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Tema realizzato per Cantine Polvanera
Author: vlp
Author URI: cantinepolvanera.it
Template: polvanera-theme
Version: 2.0.0
Text Domain: polvanera-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* =========================
   WAVE COVER BUTTON
   ========================= */

.wave-cover {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

/* testo sempre sopra */
.wave-cover .qodef-m-text {
  position: relative;
  z-index: 2;
}

/* onda */
.wave-cover::before {
  content: "";
  position: absolute;
  bottom: -120%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-color: #743559;
  /* COLORE WAVE */
  border-radius: 40% 45% 50% 40%;
  transition: bottom 0.6s ease;
  z-index: 1;
}

/* hover */
.wave-cover:hover::before {
  bottom: -10%;
}

.wave-cover:hover {
  color: #ffffff;
}

/* =========================
   header sticky
   ========================= */





header {
  position: sticky !important;
  top: 0;
  /* distanza dalla cima della viewport */
  z-index: 1000;
  /* sopra gli altri elementi */
  transition: all 0.3s ease;
  /* transizione fluida */
}


header.is-sticky {
  background-color: #000 !important;
  /* sfondo nero quando sticky */
  background-image: none !important;
  transition: padding 0.3s ease,
    background-color 0.3s ease;
}

.logo2 {
  display: none;

}

header.is-sticky .logo1 {
  display: none;
}

header.is-sticky .logo2 {
  display: block;

}




/* Container Elementor con sfondo animato */
.kenburns {
  position: relative;
  overflow: hidden;
  /* evita che l’immagine “sbordi” */
  background-position: center;
  background-size: 110%;
  /* partenza zoom leggero */
  background-repeat: no-repeat;
  animation: kenburns 30s ease-in-out infinite alternate;
}

/*solo zoom */

@keyframes kenburns {
  from {
    background-size: 100%;
  }

  to {
    background-size: 120%;
  }
}

/* contact form */

.wpcf7 .contatti {
  font-family: "DM Sans", Sans-serif !important;
}

.wpcf7 .contatti .two-columns {
  columns: 2;
  /* O un altro numero di colonne desiderato */
  gap: 20px;
  /* Spazio tra le colonne */
}

.wpcf7 .contatti label {
  color: #000;
  margin-top: 15px;
}

.wpcf7 .contatti input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select {
  border: 1px solid #000;
  border-radius: 1.5rem;
  height: 3rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  width: 100%;

  margin-top: 10px;
}

.wpcf7 .contatti textarea {
  border: 1px solid #000;
  border-radius: 0.5rem;
  height: 5rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  width: 100%;

  margin-top: 10px;
}

.wpcf7 .contatti .accetta .wpcf7-form-control.wpcf7-acceptance {
  background: rgb(0 0 0 / 0%);
  margin-top: 35px;
  color: white;
}

.wpcf7 .contatti .accetta .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .contatti [type="button"],
[type="submit"],
button {
  background-color: #743559;
  border: 1px solid #743559;
  border-radius: 150px;
  color: #fff;
  display: block;
  margin: 0 auto;
  font-family: "DM Sans", Sans-serif !important;
  width: 60%;
  height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-top: 20px;
  text-align: center;
  transition: all 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
}

.wpcf7 .contatti [type="submit"]:hover,
button:focus,
button:hover {
  background-color: #743559;
  color: #fff;
  text-decoration: none;
}

[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
  background-color: #743559;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.wpcf7 .contatti form.invalid .wpcf7-response-output,
.wpcf7 .contatti form.unaccepted .wpcf7-response-output,
.wpcf7 .contatti form.payment-required .wpcf7-response-output {
  border-color: #ffb900;
  color: #000;
}

.wpcf7-not-valid-tip {
  color: red;
}

/* Opzionale: per controllare il layout quando il numero di colonne è 1 su dispositivi mobili */
@media (max-width: 768px) {
  .wpcf7 .contatti .two-columns {
    columns: 1;
  }
}

/* contact form NL */

.wpcf7 .newsletter {
  font-family: "DM Sans", Sans-serif !important;
}

.wpcf7 .newsletter .two-columns {
      gap: 20px;
    display: flex;
    align-content: center;
    align-items: center;
}

.wpcf7 .newsletter label {
  color: #fff;
  margin-top: 15px;
}

.wpcf7 .newsletter input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select {
  border: 1px solid #000;
  border-radius: 1.5rem;
  height: 3rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  width: 100%;
      margin-top: 0;
}


.wpcf7 .newsletter .accetta .wpcf7-form-control.wpcf7-acceptance {
  background: rgb(0 0 0 / 0%);
  margin-top: 35px;
  color: white;
  font-size:12px;
}

.wpcf7 .newsletter .accetta .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .newsletter [type="button"],
[type="submit"],
button {
  background-color: #743559;
  border: 1px solid #743559;
  border-radius: 150px;
  color: #fff;
  display: block;
  margin: 0 auto;
  font-family: "DM Sans", Sans-serif !important;
  width: 60%;
  height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
}

.wpcf7 .contatti [type="submit"]:hover,
button:focus,
button:hover {
  background-color: #743559;
  color: #fff;
  text-decoration: none;
}

[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
  background-color: #743559;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.wpcf7 .newsletter form.invalid .wpcf7-response-output,
.wpcf7 .newsletter form.unaccepted .wpcf7-response-output,
.wpcf7 .newsletter form.payment-required .wpcf7-response-output {
  border-color: #ffb900;
  color: #000;
}

.wpcf7-not-valid-tip {
  color: red;
}

/* Opzionale: per controllare il layout quando il numero di colonne è 1 su dispositivi mobili */
@media (max-width: 768px) {
  .wpcf7 .newsletter .two-columns {
    columns: 1;
  }
}


/*la masseria*/


/*title reveal*/

.scroll-right,
.scroll-left {
  overflow: hidden;
  font-size: 2rem;
  display: inline-block;
}


/*text reveal*/

.word {
  position: relative;
}

.line-mask {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fff;
  opacity: 0.8;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.text_reveale {
  width: 70%;
  height: 90px;
  position: relative;
  overflow: hidden;

}

.text_reveale span {
  position: absolute;
  font-size: 3rem;

}

/* timeline pagina premi

/* LINEA */
.timeline::before {
  content: "";
  position: absolute;
  left: 180px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #000;
}

@media (max-width: 768px) {
  .timeline::before {
  left: 65px;

}
}

/* LINEA ANIMATA */
.timeline-progress {
  position: absolute;
  left: 150px;
  top: 0;
  width: 2px;
  height: 0;
  background: #000;
}

/* SINISTRA */


.year {
  font-size: 32px;
  margin-bottom: 80px;
  opacity: 0.3;
  transition: 0.3s;
}

.year.active {
  opacity: 1;
}

/* DESTRA */


.content {
  margin-bottom: 120px;
  opacity: 0;
}

[id] {
  scroll-margin-top: 120px;
}