/* ── 1. RESET & TOKEN ───────────────────────────────── */

:root {
  --blue: #1A2B22;
  --blue-primary: #005426;
  --blue-dark: #236B44;
  --blue-mid: #289C5E;
  --blue-light: #A8D5B5;
  --blue-bg: #EAF5EE;
  --gold: #D4922A;
  --gold-dark: #A86E18;
  --gold-light: #EDD598;
  --gold-bg: #FCF5E4;
  --orange: #C9622A;
  --orange-dark: #9E4A1C;
  --orange-mid: #B85526;
  --orange-light: #F2C9AE;
  --orange-bg: #FDF0E6;
  --teal: #1A7A6E;
  --teal-dark: #125C53;
  --teal-light: #A3D9D0;
  --teal-bg: #E8F7F5;
  --coral: #C94F45;
  --coral-light: #F5CECA;
  --coral-bg: #FEF3F2;
  --ink: #1A2B22;
  --ink-m: #2C4035;
  --ink-l: #3E5646;
  --bg: #FAFFF9;
  --bg-soft: #F3FAF5;
  --border: #D8E8DC;
  --sem-v: #2E8B57;
  --sem-g: #D4922A;
  --sem-r: #C0392B;
  --g500: var(--blue-primary);
  --g600: var(--blue-dark);
  --g400: var(--blue-mid);
  --g200: var(--blue-light);
  --g100: var(--blue-bg);
  --g50: var(--blue-bg);
  --g30: #F0FAF3;
  --teal-compat: var(--teal);
  --yellow: var(--gold);
  --yellow-light: var(--gold-light);
  --yellow-dark: var(--gold-dark);
  --r: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(20,60,35,.07);
  --shadow: 0 4px 20px rgba(20,60,35,.10);
  --shadow-lg: 0 16px 48px rgba(20,60,35,.13);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /*font-size: 17px;*/
}

body {
  font-family: 'Montserrat', 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', 'Lora', serif;
  color: var(--blue);
  line-height: 1.15;
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── 4. NAVBAR (Bootstrap overlay) ─────────────────── */

#nav.navbar {
  background: rgb(255,255,255) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #D8E8DC!important;
  transition: border-color .3s, box-shadow .3s;
  padding: 0;
}

#nav.navbar.scrolled {
  border-bottom-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
}

#nav .navbar-brand img {
  height: 44px;
  width: auto;
}

#nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .06em;
  color: #1A2B22;
  padding: .45rem .8rem !important;
  border-radius: 4px;
  transition: color .2s, background .2s;
  border-right: 1px solid rgba(222,222,222,0.81);
}

#nav .nav-link:hover {
  color: var(--g30) !important;
}

#nav .navbar-nav {
  font-size: 1.1rem !important;
}

/* CTA button in navbar */

#nav .btn-yellow, #nav .btn-sm.btn-yellow {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--blue-primary) !important;
  color: #fff !important;
  border: none;
  padding: .5rem 1.2rem !important;
  border-radius: 4px;
  transition: background .2s, transform .2s;
}

#nav .btn-yellow:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

/* ── 18. FOOTER ─────────────────────────────────────── */

footer {
  /*background: #D9622B;*/
  /*padding: 0;*/
  font-size: 1.2rem;
}

.footer-simple {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer-simple-left {
  flex: 1;
  min-width: 160px;
}

.footer-simple-domain {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}

.footer-simple-domain:hover {
  color: #fff;
}

.footer-simple-center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem .45rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .90rem;
  color: rgba(255,255,255,.85);
  text-align: center;
}

.footer-simple-center strong {
  font-weight: 700;
  color: #fff;
}

.footer-simple-center a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.footer-simple-center a:hover {
  color: #fff;
}

.footer-simple-sep {
  color: rgba(255,255,255,.4);
  font-size: .7rem;
}

.footer-simple-right {
  flex: 1;
  min-width: 160px;
}

@media (max-width: 640px) {
  .footer-simple {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .footer-simple-left, .footer-simple-right {
    display: none;
  }
}

/* Blocchi countdown */

#hero {
  padding: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 10%, rgba(34,122,255,.06) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 5% 90%, rgba(232,168,56,.10) 0%, transparent 65%), linear-gradient(168deg, #FBF8F2 0%, #FFFDF9 55%, #F4F8FF 100%);
  position: relative;
  overflow: hidden;
}

.hero-deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-deco-circle--a {
  width: 640px;
  height: 640px;
  top: -280px;
  right: -180px;
  background: radial-gradient(circle, rgba(34,255,96,0.07) 0%, transparent 65%);
}

.hero-deco-circle--b {
  width: 380px;
  height: 380px;
  bottom: 20px;
  left: -100px;
  background: radial-gradient(circle, rgba(232,168,56,.12) 0%, transparent 65%);
}

/* ── Corpo ─────────────────────────────────────── */

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2.5rem;
  margin: 0 auto;
}

@keyframes heroBreath {
  0%, 100% {
    background-position: 80% 10%, 5% 90%, center;
  }
  50% {
    background-position: 75% 12%, 8% 85%, center;
  }
}

/* ── 1. KICKER ─────────────────────────────────── */

.hero-kicker-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  /*padding: .35rem 1rem;*/
  /*margin-bottom: 1.3rem;*/
  animation: fadeDown .4s ease both;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-kicker-sep {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
}

/* ── 2. HEADLINE ───────────────────────────────── */

.hero-h1 {
  font-family: 'Cormorant Garamond', 'Lora', serif;
  /*font-size: clamp(2.2rem, 3.8vw, 3.2rem);*/
  /*font-weight: 800;*/
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
  animation: fadeUp .5s .08s ease both;
  text-wrap: balance;
  margin-bottom: 0.5rem;
}

/* titolo statico: più piccolo e leggero, fa da soprattitolo */

.hero-h1--static {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-l);
  font-family: 'Montserrat', sans-serif;
}

/* le due hero-sub iniziali sono ridondanti, puoi nasconderle */

.hero-body > .hero-sub:not(.hero-sub--tagline) {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-l);
  line-height: 1.3;
}

.hero-body > .hero-sub:not(.hero-sub--tagline) strong {
  font-weight: 600;
}

/* Gestione dei testi dei loghi in alto per non distrarre */

.hero-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.hero-sub-brand {
  font-family: sans-serif;
  font-size: 1.3rem;
  color: var(--blue-dark);
}

.hero-sub-brand-text {
  font-family: sans-serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
}

/* LA SOLUZIONE PER LA CLIENTE: "La salute mentale..." */

.hero-kicker-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-m);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

/* Ottimizzazione della Card Evento per non ammassare i testi */

.hero-event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-h1 em {
  color: var(--blue-primary);
  font-style: italic;
}

#takeaways-section {
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

#takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: benefit-counter;
}

#takeaways-list li {
  position: relative;
  padding: 1.8rem 0 1.8rem 3.5rem;
  border-bottom: 1px solid rgba(46,122,78,0.1);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  counter-increment: benefit-counter;
  text-align: left;
  font-style: normal;
  color: var(--ink-m);
  line-height: 1.6;
}

#takeaways-list li::before {
  content: counter(benefit-counter);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-dark);
  opacity: 0.6;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── 3. SOTTOTITOLO ────────────────────────────── */

.hero-sub {
  font-family: auto;
  animation: fadeUp .5s .14s ease both;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
  /*margin: 0 auto 28px;*/
}

.hero-sub--association {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 500;
  color: var(--ink-m);
  max-width: 540px;
  /*margin: 0 0 4px;*/
}

/* ── Tagline: riga statica, più leggibile — rimuoviamo italic ── */

.hero-sub--tagline {
  font-family: 'Cormorant Garamond', 'Lora', serif;
  line-height: 1.55;
  opacity: 1;
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  /*font-weight: 400;*/
  /*color: var(--ink-m);*/
  margin: 0.5rem auto 1.8rem;
  /*font-style: normal;*/
  text-wrap: balance;
}

/* ── Card evento: data / ora / piattaforma in riquadro ── */

.hero-event-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  animation: fadeUp .5s .16s ease both;
}

.hero-event-datetime {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}

.hero-event-datetime span {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  font-weight: 700;
  color: var(--bs-dark);
  line-height: 1;
  text-transform: capitalize;
}

@media (max-width: 480px) {
  .hero-event-datetime span {
    display: inline;
    white-space: nowrap;
  }
}

.hero-event-divider {
  width: 2px;
  height: 20px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.hero-event-platform {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--bs-dark);
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
}

.hero-event-platform i {
  color: var(--blue-primary);
  font-size: 1.3rem;
}

.hero-divider {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background: var(--border);
  margin: 1.1rem auto;
}

/* ── 4. COUNTDOWN ──────────────────────────────── */

.hero-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  margin: 1.8rem 0;
  animation: fadeUp .5s .2s ease both;
  background: var(--gold-bg);
  /*border: 1px solid var(--gold-light);*/
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.hero-countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
  margin: 0;
}

/* ── Program Section ── */

#program-section {
  /*border-top: 1px solid #e8e8e0;*/
  padding-top: 2rem;
  /*margin-top: 2rem;*/
}

#program-section h4, #takeaways-section h4, #ws-relatore h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

/* ── Contenuto Quill ── */

#hero-program p {
  margin: 0.6rem 0;
  color: var(--ink-m);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
}

/* Liste ordinate → timeline numerata */

#hero-program ol {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: prog-counter;
}

#hero-program ol li {
  counter-increment: prog-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid #ebebeb;
  font-size: 1.2rem;
}

#hero-program ol li:last-child {
  border-bottom: none;
}

#hero-program ol li::before {
  content: counter(prog-counter);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: #9FE1CB;
  line-height: 1;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Liste non ordinate → bullet curati */

#hero-program ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

#hero-program ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  border-bottom: 0.5px solid #f0f0ec;
  color: #444;
  font-size: 1.2rem;
}

#hero-program ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1D9E75;
}

#hero-program strong {
  font-weight: 500;
  color: #1a1a1a;
}

#hero-program h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 1.25rem 0 0.25rem;
}

#hero-program h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 1rem 0 0.25rem;
}

/* ── 5. CTA ────────────────────────────────────── */

.btn-hero-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  /*gap: .7rem;*/
  width: 95%;
  max-width: 360px;
  background: var(--blue-primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 1.4vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-bottom: .75rem;
  animation: fadeUp .5s .26s ease both, ctaPop .6s .9s ease both;
}

@media (max-width: 468px) {
  .btn-hero-primary {
    font-size: 1.25rem;
    padding: 1.1rem 0rem;
  }
}

.btn-hero-primary i {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.btn-hero-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:active {
  transform: translateY(0);
}

@keyframes ctaPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.025);
  }
  70% {
    transform: scale(.995);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Responsive mobile ── */

@media (max-width: 480px) {
  .hero-event-card {
    /*padding: .9rem 1.2rem;*/
    width: 100%;
  }
}

/* Blocchi countdown */

.countdown-blocks {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: center;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.countdown-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-l);
  margin-top: 4px;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink-l);
  line-height: 1;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.countdown-started {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sem-v);
}

.countdown-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sem-v);
  animation: pulse 1.5s infinite;
}

/* con immagine cover */

.hero--has-cover .countdown-block {
  max-width: 100px;
  padding: 1.2rem 1.1rem 0.9rem;
}

.hero--has-cover .countdown-value {
  font-size: 3.5rem!important;
}

.hero--has-cover .countdown-label {
  font-size: 0.8rem;
}

.hero--has-cover .countdown-sep {
  font-size: 4.1rem!important;
}

.hero--has-cover .hero-countdown-wrap {
  margin-top: 0.5rem;
}

/* ← fix: breakpoint consolidata */

@media (max-width: 480px) {
  .countdown-value, .hero--has-cover .countdown-value {
    font-size: 2.3rem !important;
  }
}

@media (max-width: 480px) {
  .countdown-sep, .hero--has-cover .countdown-sep {
    font-size: 2.4rem !important;
  }
}

@media (max-width: 480px) {
  .countdown-block {
    padding: .7rem .5rem .5rem;
  }
}

@media (max-width: 480px) {
  .countdown-block {
    padding: .7rem .5rem .5rem;
  }
}

@media (max-width: 480px) {
  .countdown-sep {
    font-size: 1.5rem;
  }
}

/* ── Wave ──────────────────────────────────────── */

.hero-wave {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

.help-button-wrapper {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-left: 1.5px solid var(--orange-light);
  min-width: 160px;
}

.help-text {
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.help-wrapper {
  background: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border: 1.5px solid var(--orange-light);
}

.btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue-primary) !important;
  color: #ffffff !important;
  padding: 9px 17px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background .25s, transform .2s, box-shadow .2s;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34,122,255,.28);
  white-space: nowrap;
}

.btn-primary:hover, a.btn-primary:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,255,109,0.38);
}

