@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  width: 100vw;
  overflow-x: hidden;
  display: flex;
  margin: 0;
  flex-direction: column;
  background: white;
  align-items: center;
  font-optical-sizing: auto;
}

.logoTxt {
  font-size: 20px;
  font-family: poppins;
  font-weight: 800;
  font-style: normal;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgb(0, 0, 0);
  margin-left: 40px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

header.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: slideDown 0.5s ease-out forwards;
    border-bottom: 0.3px solid #80808063;
}
   @keyframes slideDown {
      from {
        transform: translateY(-100px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
nav.navBar {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
}

a {
  all: unset;
  font-family: poppins;
  font-weight: 300;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

a:hover {
  color: #ee610f;
}

button.cta {
  padding: 10px 7px;
  background: #ee610f;
  color: rgb(255, 255, 255);
  font-weight: 400;
  font-family: 'Poppins';
  border: none;
  border-radius: 5px;
  margin-right: 40px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta:hover {
  transform: scale(1.1);
}
/* ===== MENU MOBILE BASE ===== */

/* Nasconde il menu mobile di default (desktop) */
.menu-natale {
  display: none;
  margin-right: 40px;
}

/* Nasconde la checkbox */
#toggle-menu {
  display: none;
}

/* Bottone menu */
.menu-btn {
    background: #ee610f;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Poppins';
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,.25);
    transition: all 0.3s ease;
}

.menu-btn:hover {
  background: #ee610f;
}
.hero {
    position: relative;
    width: 100%;
    height: 550px;
    background-image: url("hero.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
}
p.heroTxt {
    font-size: 21px;
    color: white;
    font-family: 'Poppins';
    font-weight: 900;
}
.notifications-container {
  width: 100%;
  position: relative;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    background: #ffffffba;
    box-shadow: 0 4px 6px -2px rgba(255, 255, 255, 0.5);
}
.content {
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.message-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.message {
    transition: transform 0.4s ease, opacity 0.4s ease;
    font-size: 13px;
    font-family: 'Poppins';
    margin-top: 20px;
}
.message.active {
    transform: scale(1.1);
    margin-top: 20px;
    font-family: 'Poppins';
    font-size: 12px;
}

/* Frecce */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}
.arrow.hidden {
  display: none;
}

/* Pallini */
.dots {
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 3px;
  background: #5b5656;
  border-radius: 50%;
}

.dot.active {
  background: #ee610f;
}
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* popup visibile */
.popup:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
}

/* contenuto */
.popup-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  font-family: 'Poppins';
  transform: translateY(40px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

/* stato attivo */
.popup:not(.hidden) .popup-content {
  transform: translateY(0);
  opacity: 1;
}

/* chiusura */
.popup.hidden .popup-content {
  transform: translateY(40px);
  opacity: 0;
}

.popupTitle {
  color: #ee610f;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}


.highlight {
  font-weight: 600;
  color: #ee610f;
  cursor: pointer;
  text-decoration: underline;
}

button#ackBtn {
    background: #ee610f;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Poppins';
    font-weight: 600;
    color: white;
    cursor: pointer;
}
@keyframes gentlePulseStrong {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(238, 97, 15, 0.45);
  }
  60% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(238, 97, 15, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(238, 97, 15, 0);
  }
}
#ackBtn:not(:disabled) {
  animation: gentlePulseStrong 3s ease-in-out infinite;
}
#ackBtn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  border: none;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Poppins';
    font-weight: 600;
}
@media (max-width: 960px) {

  /* Nasconde la navbar desktop */
  nav.navBar {
    display: none;
  }
.hero {
    height: 490px;
}
  /* Mostra menu mobile */
  .menu-natale {
    display: inline-block;
    position: relative;
  }

  /* Dropdown */
  .dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: #f7f3e8;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,.25);
    list-style: none;
    padding: 10px 0;
    margin: 0;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #1f3d2b;
    font-family: 'Poppins';
    font-weight: 600;
    text-decoration: none;
  }

  .dropdown li a:hover {
    background: rgba(178, 18, 38, 0.15);
  }

  /* APERTURA MENU */
  #toggle-menu:checked + .menu-btn + .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
@media (max-width: 960px) {

  /* Header più compatto */
  header.header {
    padding: 12px 0px;
    gap: 12px;
  }

  /* Logo più piccolo */
  .logo {
    margin-left: 20px;
  }

  .logoTxt {
    font-size: 16px;
  }

  /* CTA nascosta (opzione migliore mobile) */
  button.cta {
    display: none;
  }

  /* Menu mobile più comodo */
  .menu-natale {
    margin-right: 0;
  }

  .menu-btn {
    font-size: 13px;
    padding: 8px 14px;
    margin-right: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
  }

  /* Dropdown full-width su mobile */
  .dropdown {
    width: 90vw;
    max-width: 320px;
  }
  .popup-content {
    max-width: 280px;
}
.message {
    font-size: 12px;
}
}
