/* ========================================
   LANDING PAGE ITALIAlocals.com - FIX CONTRASTO TOTALE
======================================== */

/* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* VARIABILI */
:root {
  --primary-green: #198754;
  --secondary-green: #28a745;
  --accent-gold: #ffc107;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

/* BASE TYPO */
body {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem !important;
  line-height: 1.7;
  color: var(--text-dark);
}
body p {
    color: #505050;
    font-size: 20px !important;
    font-weight: 100 !important;
}
.path-welcome-a .pt-4 {
  padding-top: 0 !important;
}
.region-content {
  padding: 0 !important;
}
p {
  font-size: 21px !important;
  font-weight: 300 !important;
  font-family: 'Nunito', sans-serif !important;
}
h1, h2, h3, .display-3 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 200;
}

/* *** HERO - TUTTO BIANCO *** */
.landing-hero {
  min-height: 100vh;
  /*background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);*/
  background: url(/modules/custom/italialocals_homepage/assets/colosseo.jpg) center center no-repeat;
  background-size: cover;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  text-align: center;
  position:relative;
}

.landing-hero .container {
  z-index:999;
}

.landing-hero:before{
  background: rgba(0, 0, 0, 0.8);
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    pointer-events: none;
    top: 0;
    left: 0;
}


.landing-hero * {
  color: var(--white) !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8) !important;
}
.landing-hero h1 {
  font-weight: 300 !important;
}
.landing-hero h1,
.landing-hero .display-3 {
  font-size: clamp(3rem, 6vw, 5rem) !important;
  font-weight: 800 !important;
}

.landing-hero .lead {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.4em;
}
.container {
  max-width: 960px !important;
}
h2 {
  font-size: 2.5em !important;
  font-weight: 100 !important;
}
h3 {
  font-family: 'Nunito', sans-serif !important;
}
/* *** CTA - TUTTO BIANCO *** */
.onboarding {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%) !important;
  color: var(--white) !important;
}

.onboarding {
  color: var(--white) !important;
}

#cta h2,
#cta p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
  color: var(--white) !important;
}

#cta .form-control {
  background: rgba(255,255,255,0.95) !important;
  color: var(--text-dark) !important;
  /*border: 2px solid rgba(255,255,255,0.4) !important;*/
  border: 2px solid rgb(186 186 186 / 40%) !important;
}

#cta .form-control::placeholder {
  color: rgba(0,0,0,0.5) !important;
}

/* *** SEZIONI NORMALI - TESTO SCURO *** */
section:not(.landing-hero):not(#cta) {
  color: var(--text-dark) !important;
}

section:nth-child(odd):not(.landing-hero):not(#cta) {
  background: var(--bg-light) !important;
}

section:nth-child(even):not(.landing-hero):not(#cta) {
  background: var(--white) !important;
}

/* *** LISTE BENEFICI *** */
#guadagno ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 2rem auto;
}

#guadagno li {
  background: var(--white) !important;
  color: var(--text-dark) !important;
  padding: 1.5rem 2rem 1.5rem 4.5rem !important;
  margin-bottom: 1rem;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

#guadagno li::before {
  content: '✓';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* *** BOTTONI *** */
.btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  transition: all 0.3s;
}

.landing-hero .btn,
#cta .btn {
  background: var(--accent-gold) !important;
  color: var(--text-dark) !important;
  border: none !important;
}

.landing-hero .btn:hover,
#cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,193,7,0.4);
}

/* *** RESPONSIVE *** */
@media (max-width: 768px) {
  .landing-hero { min-height: 90vh; }
  .landing-hero .display-3 { font-size: 2.5rem !important; }
  section { padding: 3rem 1rem !important; }
}

html { scroll-behavior: smooth; }

#cta label.js-form-required.form-required, #cta .fieldset-legend {
    color: #000000 !important;
    text-align: left;
}

.webform-submission-guide-onboarding-form {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  color: #212529 !important;
  /* 1) Metti in riga e fai wrappare (di solito Drupal mette i checkbox dentro .form-checkboxes) */
  .form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }
    .fieldset-wrapper {
      overflow: auto;
      max-height: none;
      padding: 0;
      border: none;
      background: #f8f9fa;
    }
  /* 2) Ogni item: niente layout “da form” classico */
  .form-checkboxes .js-form-type-checkbox {
    margin: 0;          /* Drupal spesso mette margini */
    padding: 0;
  }

  /* 3) Nascondi il checkbox ma lascialo accessibile */
  .form-checkboxes .js-form-type-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* 4) Il label diventa la chip */
  .form-checkboxes .js-form-type-checkbox label.option {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 9999px;
    padding: .35rem 1rem;
    cursor: pointer;
    user-select: none;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    &:hover {
      background: rgba(14,111,253,0.23);
    }
  }

  /* 5) Stato checked */
  .form-checkboxes .js-form-type-checkbox input[type="checkbox"]:checked + label.option {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
  }

  /* 6) Focus da tastiera */
  .form-checkboxes .js-form-type-checkbox input[type="checkbox"]:focus-visible + label.option {
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
  }

  /* 7) Disabled */
  .form-checkboxes .js-form-type-checkbox input[type="checkbox"]:disabled + label.option {
    opacity: .6;
    cursor: not-allowed;
  }
  .form-item {
    margin-bottom: 16px;
    background: #f8f9fa;
  }

  .form-type-textfield label,
  .form-type-email label{
    font-weight: 600 !important;
  }
  legend {
    font-size: initial;
    font-weight: 600 !important;
  }

  .form-item-privacy {
    display: flex;
    margin-top: 32px;
    margin-bottom: 32px;
    input {
    margin-right: 10px;
    }
  }
  .form-required::after {
      display: inline-block;
      width: 6px;
      height: 6px;
      margin: 0 0.3em;
      content: "";
      vertical-align: super;
      background-image: url(/themes/contrib/bootstrap5/images/icons/required.svg);
      background-repeat: no-repeat;
      background-size: 6px 6px;
  }
}

.reveal-list li {
  opacity: 0;
  transform: translateX(-30px);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(.25,.8,.25,1),
    transform 0.7s cubic-bezier(.25,.8,.25,1),
    filter 0.7s cubic-bezier(.25,.8,.25,1);
}

.reveal-list li.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-letters span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
  filter: blur(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    filter 0.5s ease;
}

.reveal-letters span.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
.container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.container.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.two-sides{
  display:flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}
.left{}
.right{}
.right img{
  max-width: 100%;
  padding:0px;
}
@media (min-width: 768px){
  .two-sides{
    flex-direction: row;
  }
  .right img{
    max-width: 400px;
    padding:24px;
  }
}

#cta {
  background: #014711 !important;
}

.hero {
  position: relative;
  height: 100vh;
  background: url('/path-to-image.jpg') center/cover no-repeat;
}

/* Contenuto centrale */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

/* Posizione indicatore */
.scroll-indicator {
  position: absolute;
    bottom: -72px;
  left: 50%;
  transform: translateX(-50%);
}

/* Mouse outline
.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 14px;
  position: relative;
}*/

.scroll-indicator {
  transition: opacity 0.3s;
}

.scrolled .scroll-indicator {
  opacity: 0;
}

/* Rotellina */
.wheel {
    width: 40px;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 1.6s ease-in-out infinite;
    rotate: 45deg;
    border-bottom: 2px solid silver;
    border-right: 2px solid silver;
}

/* Animazione */
@keyframes wheel-scroll {
  0% {
    opacity: 0;
    top: 8px;
  }
  40% {
    opacity: 1;
  }
  80% {
    top: 20px;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
