/* SFONDO */
body {
  
  margin: 0;
  height: 100vh;
  background: radial-gradient(
    94% 62% at 50% 100%,
    #7aa4ba 21%,
    #3a5d73 52%,
    #01374e 70%,
    #000000 97%
  );
  font-family: 'Playfair Display', serif;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  body {
    background: radial-gradient(
      150% 50% at 50% 100%,
      #7aa4ba 10%,
      #3a5d73 40%,
      #01374e 65%,
      #000000 100%
    );
  }
}

#mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000000 0%, #060611 100%);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  animation: fadeMask 3s cubic-bezier(1, 1.39, 0.08, 0.93) forwards;
}

@keyframes fadeMask {
  to {
    opacity: 0;
  }
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  z-index: 1;

  /* Centra la bottiglia */
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes moveBottle {
  to {
    transform: translate(-50%, -50%);
  }
}


/* BOTTIGLIA + RIFLESSO */
.bottle-wrapper {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -1100px);
  z-index: 2;
  animation: moveBottle 3s cubic-bezier(1, .39, .08, .93) forwards;
  animation-delay: 0.8s;
  display: flex;
  flex-direction: column;
  align-items: center;
}


@keyframes fadeInReflection {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.25;
  }
}


.bottle-glass,
.bottle-reflection {
  width: 30vw;
  max-width: 200px;
  height: auto;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.bottle-reflection {
  transform: scaleY(-1);
  opacity: 0;
  animation: fadeInReflection 1.5s ease-in-out 3.0s forwards;
  filter: blur(1px);
  margin-top: -20px;

  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Hover effetto glow */
.bottle-wrapper:hover .bottle-glass {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgb(241, 224, 125));
}

.bottle-wrapper:hover .bottle-reflection {
  transform: scaleY(-1) scale(1.08);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* Mobile */
@media (max-width: 600px) {
  .bottle-glass,
  .bottle-reflection {
    width: 50vw;
    max-width: 150px;
  }
}

/* EFFETTO LOGO */

.logo-animated {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 350px;
  opacity: 0;
  z-index: 3;
  animation: moveLogo 3s cubic-bezier(1,.52,.86,.75) forwards;
  animation-delay: 0.8s;
}

@keyframes moveLogo {
  to {
    top: 0px;
    opacity: 1;
  }
}


@media (max-width: 600px) {
  .logo-animated {
    width: 280px;
  }
}

.newsletter-section {
  position: relative;
  margin-top: 250px;
  background: rgba(231, 180, 10, 0);
  padding: 20px;
  border-radius: 0px;
  text-align: center;
  color: rgb(250, 250, 250);
  backdrop-filter: blur(5px);
  z-index: 3;
}


.newsletter-section form input[type="email"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 0px 0;
  font-size: 12px;
  border: none;
  border-radius: 0px;
  background: linear-gradient(to bottom right, rgba(185, 75, 75, 0.07), rgba(230, 199, 121, 0.1));

}

.newsletter-section form .gdpr-check {
  margin: 10px 0;
  font-size: 0.9em;
}

.newsletter-section form button {
  padding: 10px 20px;
  font-size: 10px;
  border: none;
  border-radius: 0px;
  background-color: #e6c779;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-section form button:hover {
  background-color: #f5d87d;
}

#form-message {
  margin-top: 15px;
  font-size: 0.95em;
}

/*EFFETTO MASCHERA POPUP*/
@keyframes fadeMaskOut {
  0% {
    mask-image: linear-gradient(to left, transparent, black 50%, black 100%);
    -webkit-mask-image: linear-gradient(to left, transparent, black 50%, black 100%);
    opacity: 1;
  }
  100% {
    mask-image: linear-gradient(to left, transparent, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent, transparent 100%);
    opacity: 0;
  }
}

@keyframes maskSlideOut {
  0% {
    -webkit-mask-image: linear-gradient(to left, transparent, black 30%, black 100%);
            mask-image: linear-gradient(to left, transparent, black 30%, black 100%);
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
    opacity: 1;
  }
  100% {
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes maskSlideOut {
  0% {
    opacity: 1;
    -webkit-mask-image: linear-gradient(to left, transparent, black 30%, black 100%);
    -webkit-mask-position: 100% 0;
    -webkit-mask-size: 200% 100%;
    mask-image: linear-gradient(to left, transparent, black 30%, black 100%);
    mask-position: 100% 0;
    mask-size: 200% 100%;
  }
  100% {
    opacity: 0;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

#grazie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(223, 16, 16, 0.05);
  backdrop-filter: blur(10px);
  font-family: 'Playfair Display', serif;
  color: white;
  padding: 30px;
  border-radius: 0; /* Angoli a punta */
  text-align: center;
  z-index: 10001;
  box-shadow: 0 0 20px rgba(230, 199, 121, 0.4);
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
}

.popup-close:hover {
  color: #e6c779;
}
.gdpr-check {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65em;
  max-width: 460px;
  margin: 20px auto;
  padding: 15px 20px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(230, 199, 121, 0.2);
  color: white;
}

.gdpr-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.gdpr-inline input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.2);
  accent-color: #e6c779;
}

.gdpr-inline span {
  text-align: left;
}

.gdpr-note {
  font-size: 0.85em;
  opacity: 0.85;
  text-align: justify;
  line-height: 1.5;
}

.gdpr-check a {
  color: #e6c779;
  text-decoration: underline;
}

.gdpr-check a:hover {
  color: #f5d87d;
}

.newsletter-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  padding: 30px;
  border-radius: 0px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  color: rgb(255, 255, 255);
  text-align: center;
  animation: fadeInPopup 1s ease forwards;
  width: 90vw;          /* larghezza relativa allo schermo */
  max-width: 500px;     /* massimo su desktop */
  box-sizing: border-box;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.newsletter-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.newsletter-close:hover {
  color: #e6c779;
}

/* PULSATE ISCRIVITI*/

.btn-sweep-right {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 0px;
  background-color: rgb(1, 109, 136);
  color: white;
  font-size: 12
  px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease;
}

.btn-sweep-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #003046d3;
  z-index: -1;
  transition: width 0.4s ease;
}

.btn-sweep-right:hover::before {
  width: 100%;
}

.btn-sweep-right:hover {
  color: black;
}

.gdpr-check,
.gdpr-note,
.gdpr-check a {
  font-family: 'Playfair Display', serif;
}

#newsletter-popup input[type="email"] {
  width: 100%;            /* oppure 300px, 400px... */
  max-width: 500px;       /* limita larghezza su schermi grandi */
  height: 50px;           /* aumenta altezza del campo */
  padding: 12px 18px;     /* spazio interno */
  font-size: 18px;        /* testo più grande */
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: none;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .newsletter-popup {
    width: 100vw;         /* su mobile: larghezza piena */
    height: auto;         /* lascia che si adatti al contenuto */
    padding: 20px 16px;
    border-radius: 0;     /* opzionale: popup a tutta larghezza */
  }
}
