@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --rosa: #b9626e;
  --beige: #efe2cc;
  --blu: #2e3357;
}

body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}



/* ==============================
   HEADER & NAVIGATION
   ============================== */
.header-finalmente {
  background-color: #ffffff;
  width: 100%;
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 40px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700; 
  color: var(--blu);
  text-decoration: none;
  letter-spacing: -1px;
  z-index: 101; 
}

.logo-dot {
  color: var(--rosa);
}

.hamburger-btn {
  display: none; 
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blu);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: var(--blu);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease-in-out;
}

.main-nav a:hover {
  opacity: 0.7;
}

.main-nav .btn-iscriviti {
  background-color: var(--rosa);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 2px;
}

.main-nav .btn-iscriviti:hover {
  background-color: var(--blu);
  opacity: 1;
}




/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
  background-image: url('https://www.futuracom-eventi.it/img/header.png');
  background-repeat: no-repeat;
  background-position: center; 
  background-size: cover; 
  padding: 100px 0;
  width: 100%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 64px; 
  line-height: 1.1;
  color: var(--blu);
  margin: 0 0 15px 0;
  letter-spacing: -1px;
}

.title-italic {
  font-family: 'Montserrat', serif;
  font-style: italic;
  color: var(--rosa);
  font-weight: 700;
  letter-spacing: 0;
}

.italic-blu{
  color: var(--blu) !important;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 42px; 
  color: var(--blu);
  margin: 0 0 30px 0;
  letter-spacing: -0.5px;
}

.hero-subtitle .dot {
  color: var(--rosa);
}

.subtitle-italic {
  font-family: 'Cormorant Garamond Medium', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--rosa);
  letter-spacing: 0;
}

.btn-outline {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--blu);
  text-decoration: none;
  padding: 10px 30px;
  border: 2.5px solid var(--blu);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--blu);
  color: #ffffff;
}




/* ==============================
   ANIMAZIONI D'INGRESSO (HERO)
   ============================== */

/* Definizione dell'animazione */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stato iniziale e applicazione dell'animazione agli elementi */
.hero-title,
.hero-subtitle,
.hero-section .btn-outline {
  opacity: 0; /* Partono invisibili */
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards; /* Mantiene lo stato finale (opacity: 1) al termine dell'animazione */
}

/* Ritardi per creare l'effetto a cascata */
.hero-title {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.5s;
}

.hero-section .btn-outline {
  animation-delay: 0.8s;
}



/* ==============================
   EVENT INFO BAR
   ============================== */
.event-info-bar {
  background-color: var(--blu);
  width: 100%;
  padding: 35px 0;
}

.event-info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.event-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #ffffff;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-location {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--rosa);
  margin: 0;
}




/* ==============================
   INTRO SECTION
   ============================== */
.intro-section {
  background-color: #f7f7f7;
  width: 100%;
  padding: 60px 0;
  overflow: hidden; /* Previene lo scroll orizzontale causato dalle animazioni in ingresso */
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.intro-image-wrapper {
  flex: 0 0 45%; 
}

.intro-image {
  width: 100%;
  height: auto;
  display: block;
}

.intro-text-wrapper {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--blu);
}

.intro-text-wrapper p {
  margin-top: 0;
  margin-bottom: 25px;
}

.intro-text-wrapper p:last-child {
  margin-bottom: 0;
}

.text-brand {
  font-family: 'Montserrat', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rosa);
}

/* ==============================
   ANIMAZIONI SCROLL (FADE IN)
   ============================== */
.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.is-visible,
.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}



/* ==============================
   FORM ISCRIZIONE SECTION
   ============================== */
.form-section {
  background-color: var(--beige);
  width: 100%;
  padding: 80px 0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.form-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--blu);
  margin: 0 0 10px 0;
}

.form-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--blu);
  margin: 0 0 5px 0;
}

.posti-rimanenti {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--rosa);
  margin: 0 0 35px 0;
}

.posti-rimanenti strong {
  font-weight: 800;
  font-size: 22px;
}

.iscrizione-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--blu);
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--rosa);
}

.privacy-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--blu);
}

.privacy-group input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--rosa);
  cursor: pointer;
}

.btn-submit {
  background-color: var(--rosa);
  color: #ffffff;
  padding: 18px;
  border: none;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--blu);
}

/* Messaggi di Alert (Successo / Errore) */
.alert {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}



/* ==============================
   TARGET SECTION (A CHI È RIVOLTO)
   ============================== */
.target-section {
  background-color: #ffffff;
  width: 100%;
  padding: 60px 0;
  overflow: hidden; /* Previene lo scroll orizzontale durante le animazioni */
}

.target-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.target-header {
  margin-bottom: 60px;
}

.target-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--blu);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.target-intro {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--blu);
  margin: 0;
}

.target-grid {
  display: flex;
  gap: 60px;
}

.target-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--rosa);
  margin: 0 0 8px 0;
}

.item-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--blu);
  margin: 0;
}

/* Nuova animazione Fade Up per lo scroll */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ==============================
   PROGRAMMA SECTION
   ============================== */
.programma-section {
  background-color: var(--beige);
  width: 100%;
  padding: 60px 0;
  overflow: hidden; /* Evita lo scroll orizzontale per le animazioni */
}

.programma-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.programma-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--blu);
  margin: 0 0 40px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.programma-grid {
  display: flex;
  gap: 60px;
}

.programma-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.programma-item {
  display: flex;
  align-items: flex-start;
  border-top: 2px solid var(--rosa);
  padding: 25px 0;
  gap: 20px;
}

.programma-number {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 75px;
  color: var(--rosa);
  line-height: 0.8;
  min-width: 70px;
  margin-top: -20px;
}

.programma-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--blu);
  margin: 0;
}

.programma-text strong {
  font-weight: 700;
}



/* ==============================
   CTA SECTION (Call To Action)
   ============================== */
.cta-section {
  background-color: var(--rosa);
  width: 100%;
  padding: 40px 0;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cta-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.5px;
}

.cta-text .text-white {
  color: #ffffff;
}

.cta-text .text-blue {
  color: var(--blu);
}

.btn-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 35px;
  border: 2px solid #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
}

.btn-cta:hover {
  background-color: #ffffff;
  color: var(--rosa);
}


/* ==============================
   MAPPA SECTION
   ============================== */
.map-section {
  width: 100%;
  display: block;
  /* line-height a 0 rimuove lo spazio bianco invisibile che spesso si crea sotto gli iframe */
  line-height: 0; 
}

.map-section iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  filter: grayscale(20%);
}



/* ==============================
   ABOUT SECTION (Progetto e Loghi)
   ============================== */
.about-section {
  background-color: #ffffff;
  width: 100%;
  padding: 60px 0;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--blu);
  text-align: left;
  margin-bottom: 50px;
  width: 100%;
}

.about-text p {
  margin: 0;
}

.about-logos {
  width: 100%;
  max-width: 550px;
  display: flex;
  justify-content: center;
}

.logos-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 361px;
}


/* ==============================
   FOOTER SECTION (Contatti)
   ============================== */
.footer-section {
  background-color: var(--rosa);
  width: 100%;
  padding: 60px 0;
  overflow: hidden; /* Previene lo scroll orizzontale durante le animazioni */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-info {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
}

.footer-info p {
  margin: 0;
}

.footer-info a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-info a:hover {
  opacity: 0.7;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: 500px;
}

.footer-cta .cta-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.footer-cta .text-white {
  color: #ffffff;
}

.footer-cta .text-blue {
  color: var(--blu);
}


/* ==============================
   MEDIA QUERIES (Mobile)
   ============================== */
@media (max-width: 900px) {
    .header-container, .hero-container {
      padding: 0 20px;
    }

    .hamburger-btn {
      display: flex;
    }

    .hamburger-btn.is-active .hamburger-line:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }
    .hamburger-btn.is-active .hamburger-line:nth-child(2) {
      opacity: 0;
    }
    .hamburger-btn.is-active .hamburger-line:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }

    .main-nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: #ffffff;
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
      transition: clip-path 0.4s ease-in-out;
    }

    .main-nav.is-open {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .main-nav .nav-list {
      flex-direction: column;
      align-items: flex-start;
      padding: 30px 20px;
      gap: 25px;
    }

    .hero-section {
      padding: 60px 0;
      background-position: 25% center; 
    }

    .hero-title {
      font-size: 40px;
    }

    .hero-subtitle {
      font-size: 24px;
    }
    .event-info-container {
      padding: 0 20px;
    }

    .event-info-bar {
      padding: 25px 0;
    }

    .event-date {
      font-size: 24px;
    }

    .event-location {
      font-size: 16px;
      line-height: 1.4;
    }
    .intro-container {
      flex-direction: column;
      padding: 0 20px;
      gap: 30px;
    }

    .intro-image-wrapper,
    .intro-text-wrapper {
      flex: 1 1 100%;
      width: 100%;
    }

    .intro-section {
      padding: 50px 0;
    }
    .target-section {
    padding: 60px 0;
  }
  
  .target-container {
    padding: 0 20px;
  }

  .target-grid {
    flex-direction: column;
    gap: 40px;
  }

  .target-title {
    font-size: 32px;
  }
  .programma-section {
    padding: 60px 0;
  }
  
  .programma-container {
    padding: 0 20px;
  }

  .programma-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .programma-grid {
    flex-direction: column;
    gap: 0; /* Rimuovo il gap perché le righe creano già la spaziatura necessaria */
  }

  .programma-item {
    padding: 20px 0;
  }
  .cta-section {
    padding: 40px 0;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    gap: 20px;
  }

  .cta-text {
    font-size: 18px;
    line-height: 1.4;
  }
  .map-section iframe {
    height: 350px; /* Riduce l'altezza della mappa su schermi piccoli */
  }
  .about-section {
    padding: 60px 0;
  }

  .about-container {
    padding: 0 20px;
  }

  .about-text {
    margin-bottom: 40px;
  }
  .footer-section {
    padding: 50px 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start; /* Allinea a sinistra su mobile */
    padding: 0 20px;
    gap: 50px;
  }
  
  .footer-info {
    font-size: 18px;
  }
  
  .footer-cta .cta-text {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .form-container {
    padding: 0 20px;
  }
}