/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Se vuoi azzerare il margin-bottom su tutti gli elementi (potrebbe ridurre troppo lo spazio tra sezioni):
     margin-bottom: 0; 
  */
}

/* Impostazioni base per l'html e il body */
html, body {
  overflow-x: hidden; /* Previene lo scroll orizzontale indesiderato */
}

/* Global Styles */
body {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 3rem; /* aumenta la grandezza */;
  line-height: 2;
  background-image: url('immagini/sfondo\ vertical.png'); /* Sostituisci con il tuo file */
  background-size: cover;       /* Copre l'intera area */
  background-position: center;  /* Centra l'immagine */
  background-repeat: no-repeat; /* Evita la ripetizione */
  color: hwb(0 100% 0%);
  scroll-behavior: smooth;
  text-align: center;
  padding-top: 60px; /* Se crea troppo spazio, riducilo o rimuovilo */
  font-size: 20px;   /* Sovrascrive la dimensione del font di default */
}

/* Per schermi piccoli (max 600px di larghezza) */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    font-family: 'Bagel Fat One', sans-serif;
  }
}

/* Per schermi grandi (min 1200px di larghezza) */
@media (min-width: 1200px) {
  body {
    font-size: 24px;
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0b9112;
  z-index: 1100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 1rem;
  position: relative;
}

/* Navigation Menu & Toggle */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  order: 1;
}

.nav-menu li {
  margin: 0 1rem;
}

.nav-menu li a {
  color: #c0bd0d;
  padding: 2rem;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
}

/* Hamburger Icon */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #faf603;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Banner Image */
.banner-image img {
  width: 100%;
  position: center; 
  height: auto; /* Se vuoi ridurre l'altezza fissa, cambia qui */
  display: block; /* 'auto' non è un valore valido per display; meglio block */
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;

  /* Nuove regole per altezza e centratura contenuti */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section {
  margin-bottom: 2rem;
  padding: 1rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

/* Steps */
.step {
  margin-bottom: 1.5rem;
}

.step img {
  width: 80%;
  max-width: 400px;
  height: auto;
  margin: 0.5rem auto 0;
  display: block;
}

/* Caption container personalizzato */
caption-container {
  display: flex;
  align-items: right;   /* Allinea verticalmente */
  justify-content: flex-start; /* Allinea a sinistra */
}

.caption-container img {
  width: 400px; /* Dimensione dell'immagine */
  height: auto;
  margin-left: 10px; /* Spazio tra la scritta e l'immagine */
}

/* Button */
button {
  background: #a6ff02;
  color: #080808;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

button:hover {
  background: #013604;
}

/* Footer */
footer {
  background: #0b9112;
  color: #fff;
  padding: 1rem;
}

/* AOS (fade-up) */
[data-aos] {
  opacity: 0;
  transform: translateY(20px); /* L'elemento parte spostato di 20px verso il basso */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Carosello */
.carousel {
  position: relative;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
}

/* Contenitore delle slide, disposte in fila */
.slides {
  display: flex;
  width: 300%; /* 100% per ogni slide, 3 slide => 300% */
  transition: transform 0.6s ease;
}

/* Ogni slide occupa il 100% del contenitore */
.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  display: block;
}

/* Nascondi i radio button */
input[name="slides"] {
  display: none;
}

/* Navigazione a puntini */
.navigation-dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.navigation-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

/* Controllo delle slide tramite radio button */
input#slide1:checked ~ .slides {
  transform: translateX(0);
}

input#slide2:checked ~ .slides {
  transform: translateX(0%);
}

input#slide3:checked ~ .slides {
  transform: translateX(-0%);
}

/* Evidenzia il puntino attivo */
input#slide1:checked ~ .navigation-dots label[for="slide1"],
input#slide2:checked ~ .navigation-dots label[for="slide2"],
input#slide3:checked ~ .navigation-dots label[for="slide3"] {
  background: #ffffff;
}

/* Carosello automatico */
.carousel {
  position: relative;
  width: 30%;
  margin: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 100%; /* 3 slide: ogni slide prende il 100% della larghezza */
  animation: slide 12s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

/* Stili per il form di contatti */
#contact-form {
  background-color: rgba(0, 0, 0, 0.6); /* Sfondo trasparente scuro */
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 30px auto; /* Centra il form orizzontalmente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#contact-form h2 {
  margin-bottom: 15px;
  font-size: 24px;
  color: yellow;
}

#contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

#contact-form input[type="text"],
#contact-form input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

#contact-form button[type="submit"] {
  background-color: #a6ff02;
  color: #080808;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

#contact-form button[type="submit"]:hover {
  background-color: #013604;
}


@keyframes slide {
  0% { transform: translateX(0); }
  33.33% { transform: translateX(0); }
  44.44% { transform: translateX(-100%); }
  77.77% { transform: translateX(-100%); }
  88.88% { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

/* Fade In Animation */
@-webkit-keyframes fadeIn {
  from { opacity: 0; -webkit-transform: translateY(20px); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  -webkit-animation: fadeIn 1s forwards;
          animation: fadeIn 1s forwards;
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .nav-toggle-label {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: 60px; /* below the fixed header */
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(30, 92, 6, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
  }
  .nav-menu li {
    margin: 1rem 0;
  }
  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }
}
  
/* Cross-browser compatibility */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

/* Consent Checkbox Styling */
.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.consent-checkbox label {
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    line-height: 1.4;
}

.consent-checkbox:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s ease;
}

/* Text container styling with touch support */
h1, h4, h5, h6, p {
    background-color: rgba(3, 39, 13, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(238, 238, 238, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Hover and touch effects */
h1:hover, h4:hover, h5:hover, h6:hover, p:hover,
h1:active, h4:active, h5:active, h6:active, p:active,
h1:focus, h4:focus, h5:focus, h6:focus, p:focus {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(238, 238, 238, 0.3);
    z-index: 1;
}

/* Touch-specific media query */
@media (hover: none) and (pointer: coarse) {
    h1:active, h2:active, h3:active, h4:active, h5:active, h6:active, p:active {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(238, 238, 238, 0.3);
        z-index: 1;
    }
}

/* Keep the exceptions for specific containers */
.navigation-dots h1, .navigation-dots h2, .navigation-dots h3,
.cookie-banner h1, .cookie-banner h2, .cookie-banner h3,
.cookie-banner p {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transform: none;
    transition: none;
}

.navigation-dots h1:hover, .navigation-dots h2:hover, .navigation-dots h3:hover,
.cookie-banner h1:hover, .cookie-banner h2:hover, .cookie-banner h3:hover,
.cookie-banner p:hover,
.navigation-dots h1:active, .navigation-dots h2:active, .navigation-dots h3:active,
.cookie-banner h1:active, .cookie-banner h2:active, .cookie-banner h3:active,
.cookie-banner p:active {
    transform: none;
    box-shadow: none;
}


.wrapper {
  display: inline-flex;
  list-style: none;
  height: 120px;
  width: 100%;
  padding-top: 40px;
  font-family: "Poppins", sans-serif;
  justify-content: center;
}
.icon {
  background: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items:center;
  position: relative;
  transition: 0.3s ease;
  color: #000; /* Default black */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
}
.wrapper {
  display: flex;
  gap: 20px;
}
.icon:hover {
  color: #fff;
}

.tooltip {
  position: absolute;
  top: -35px;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  font-size: 12px;
  white-space: nowrap;
}

.icon:hover .tooltip {
  opacity: 1;
  top: -45px;
}

/* Specific platform hover colors */
.tiktok:hover {
  background: #000;
}

.instagram:hover {
  background: #e4405f;
}

.icon:hover svg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: fill 0.3s ease;
}
  .cool-effect {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
  }

  .cool-effect:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)) brightness(1.2);
    cursor: pointer;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  } 
  .zoom-effect {
    transition: transform 0.3s ease-in-out;
    animation: zoomInOut 2s infinite;
  }
  
  @keyframes zoomInOut {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
