/* ═══════════════════════════════════════
   FONT: POPPINS (locale, sottoinsieme latin)
═══════════════════════════════════════ */
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --white: #fff;
  --blue: #0096e6;
  --blue-dark: #00648f;
  --beige: #e6dacc;
  --card: #f6f6f2;
  --line: rgba(255, 255, 255, 0.55);
  --pad: clamp(20px, 5vw, 48px);
  --container: 1120px;
  --form-w: 400px;
  --signup-gap: 48px;
  --overlap: 110px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.blue { color: var(--blue); }

/* ═══════════════════════════════════════
   BOTTONE
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 21px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 0 28px;
  min-height: 62px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #007bb0; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: .65; cursor: default; transform: none; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero-inner { position: relative; }

.hero-logos {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.logo-ms img { width: clamp(150px, 20vw, 220px); }
.logo-partner {
  width: clamp(82px, 12vw, 140px);
  margin-top: -4px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: clamp(11px, 1.45vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(31px, 8.3vw, 68px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero h1 span {
  display: inline-block;
  color: var(--beige);
  font-size: 1.15em;
  line-height: 1;
  margin-top: 0.06em;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(17px, 2.5vw, 27px);
  line-height: 1.25;
  margin-top: clamp(24px, 4vw, 44px);
}
.hero-date {
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(21px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: clamp(20px, 3.4vw, 34px);
}
.hero-place {
  font-weight: 300;
  font-size: clamp(14px, 1.9vw, 21px);
  margin-top: 8px;
}
.hero-place strong { font-weight: 600; }

/* Gratuito + solo dal vivo */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: clamp(14px, 2vw, 20px);
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: clamp(12.5px, 1.4vw, 15px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 13px;
  border: 1px solid transparent;
}
.tag-free { background: var(--beige); color: #000; font-weight: 700; }
.tag-live { border-color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.signup .tag-free { background: #000; color: #fff; }
.signup .tag-live { background: var(--card); border-color: #111; color: #111; font-weight: 700; }
.form-sub strong { font-weight: 700; }

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(22px, 3vw, 32px);
}
.hero-cta .btn { min-width: clamp(300px, 34vw, 430px); }
.hero-note {
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 18px);
  margin-top: 10px;
}

/* Sul desktop il logo partner sta in alto a destra, accanto al titolo */
@media (min-width: 720px) {
  .hero-logos { margin-bottom: clamp(50px, 7vw, 76px); }
  .logo-partner {
    position: absolute;
    top: -6px;
    right: var(--pad);
    width: clamp(128px, 12.5vw, 165px);
    margin-top: 0;
  }
}

.hero-visual {
  max-width: 1400px;
  margin: clamp(22px, 3vw, 36px) auto 0;
}
.hero-visual img { width: 100%; }
@media (min-width: 1401px) {
  .hero-visual img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}

.organizer {
  font-weight: 300;
  font-size: clamp(13px, 1.75vw, 19px);
  line-height: 1.3;
  padding: clamp(18px, 2.6vw, 30px) 0 clamp(16px, 2.2vw, 24px);
}
.organizer strong { font-weight: 600; }

/* ═══════════════════════════════════════
   SEZIONI SCURE
═══════════════════════════════════════ */
.intro, .services {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 60px) 0 clamp(36px, 5vw, 56px);
}
.intro h2, .services h2, .signup h2 {
  font-weight: 700;
  font-size: clamp(29px, 4.3vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.intro h2 span, .services h2 span { color: var(--beige); }

.intro .container { padding-left: calc(var(--pad) + clamp(0px, 1.2vw, 12px)); }
.intro-lead {
  font-weight: 600;
  font-size: clamp(14.5px, 1.75vw, 19px);
  line-height: 1.25;
  max-width: 46em;
  margin-top: clamp(16px, 2.2vw, 24px);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(26px, 4vw, 44px);
}
.benefit {
  padding: 2px clamp(14px, 2vw, 26px) 6px;
  border-left: 2px solid var(--blue-dark);
}
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit h3 {
  color: #d9d9d9;
  font-weight: 500;
  font-size: clamp(14.5px, 1.5vw, 17px);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.benefit p {
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.3;
  color: #e4e4e4;
  max-width: 17em;
}

.services-kicker {
  font-weight: 600;
  font-size: clamp(17px, 2.5vw, 27px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: clamp(14px, 2vw, 22px);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 12px);
  margin-top: clamp(22px, 3vw, 34px);
}
.service {
  /* logo, testo e relatore sulle stesse righe in tutte le schede affiancate */
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  border: 1px solid #a9a9a9;
  padding: clamp(14px, 2vw, 22px) clamp(10px, 1.4vw, 18px) clamp(16px, 2vw, 24px);
  text-align: center;
}
.service-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(54px, 6.2vw, 74px);
  width: 78%;
  margin: 0 auto clamp(12px, 1.6vw, 18px);
  border-bottom: 1px solid #8a8a8a;
  padding-bottom: 10px;
}
.service-logo img { max-height: 100%; width: auto; max-width: min(100%, 190px); }
.service-logo .logo-dojo { max-width: 62%; }
.service-logo .logo-keap { height: 82%; }
/* relatore di ogni servizio, in fondo alla scheda */
.speaker {
  align-self: start;
  padding-top: clamp(4px, 1vw, 8px);
}
.speaker img {
  width: clamp(76px, 8vw, 96px);
  height: auto;
  margin: clamp(14px, 1.8vw, 20px) auto 10px;
  border-radius: 50%;
  border: 1px solid #5a5a5a;
}
.service .speaker-name {
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.2;
}
.service .speaker-role {
  font-weight: 300;
  font-size: clamp(12.5px, 1.3vw, 14px);
  line-height: 1.3;
  color: #cfcfcf;
  margin-top: 3px;
}
.service p {
  font-size: clamp(13.5px, 1.5vw, 17px);
  line-height: 1.25;
}

/* ═══════════════════════════════════════
   CI VEDIAMO A NAPOLI + MODULO
═══════════════════════════════════════ */
.signup {
  /* larghezza dell'immagine: dal bordo sinistro della pagina fin sotto la scheda del modulo */
  --cw: calc(min(var(--container), 100vw) - 2 * var(--pad));
  --imgw: calc(50vw + var(--cw) / 2 - var(--form-w) + 40px);
  position: relative;
  color: #111;
  background: linear-gradient(to bottom, var(--beige) 0, var(--beige) calc(100% - var(--overlap)), var(--black) calc(100% - var(--overlap)));
  padding-top: clamp(28px, 3.4vw, 40px);
  scroll-margin-top: 0;
}
.signup-visual {
  position: absolute;
  left: 0;
  bottom: var(--overlap);
  width: var(--imgw);
  max-width: none;
}
.signup-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--form-w);
  gap: var(--signup-gap);
  align-items: start;
}
.signup-text {
  /* lascia vedere l'immagine: il testo occupa solo la sua fascia alta, vuota */
  padding-bottom: calc(var(--imgw) / 2.603 * 0.74 + var(--overlap));
}
.signup h2 { color: #000; letter-spacing: -0.04em; }
.signup-date {
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(19px, 2.3vw, 25px);
  letter-spacing: -0.035em;
  margin-top: clamp(12px, 1.6vw, 18px);
}
.signup-time { font-weight: 500; font-size: clamp(16px, 1.9vw, 21px); }
.signup-place {
  font-weight: 300;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.25;
  margin-top: 8px;
}
.signup-place strong { font-weight: 600; }

.form-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 10px;
  padding: 24px 22px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.form-card h3 {
  color: #000;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.form-sub { font-size: 15px; margin: 6px 0 18px 2px; }

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 13px;
  margin: 0 0 5px 3px;
}
.form-field input {
  width: 100%;
  height: 44px;
  font-family: inherit;
  font-size: 16px;
  color: #111;
  background: var(--card);
  border: 1px solid #aeb4b8;
  border-radius: 7px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(0, 100, 143, 0.18);
}
.form-field input.invalid { border-color: #c62828; }
.form-hint { font-size: 12px; line-height: 1.35; color: #555; margin: 6px 0 0 3px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  margin: 4px 0 14px 2px;
  cursor: pointer;
}
.form-privacy input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue-dark);
}
.form-privacy a { color: #2c7ea0; text-decoration: none; }
.form-privacy a:hover { text-decoration: underline; }
.form-privacy.invalid span { color: #c62828; }

.form-error {
  color: #c62828;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 12px 2px;
}
.btn-submit {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.form-thanks {
  /* alta quanto il modulo, così la scheda continua a coprire il bordo dell'immagine */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  text-align: center;
  padding: 28px 6px 20px;
  outline: none;
}
.form-thanks svg { margin: 0 auto 14px; }
.form-thanks p { font-size: 15px; line-height: 1.45; margin-top: 12px; }
.form-thanks strong { font-weight: 600; }
.form-thanks .thanks-mail { font-size: 14px; color: #444; margin-top: 8px; }
.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin-top: 20px;
  padding: 11px 18px;
  color: var(--blue-dark);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--blue-dark);
  border-radius: 7px;
  transition: background .2s, color .2s;
}
.btn-calendar:hover { background: var(--blue-dark); color: #fff; }
[hidden] { display: none !important; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.lp-footer { padding: clamp(40px, 6vw, 64px) 0 34px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.lp-footer img { width: 150px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.45); }

/* ═══════════════════════════════════════
   TABLET E MOBILE
═══════════════════════════════════════ */
@media (max-width: 1000px) {
  .signup { --form-w: 330px; --signup-gap: 32px; }
  .form-card { padding: 20px 18px 18px; }
}

@media (max-width: 760px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-logo { height: 64px; }

  /* modulo sotto: testo, immagine, scheda */
  .signup {
    --overlap: 150px;
    display: flex;
    flex-direction: column;
  }
  .signup-inner { display: contents; }
  .signup-text {
    order: 1;
    position: relative;
    z-index: 1;
    padding: 0 var(--pad);
  }
  .signup-visual {
    order: 2;
    position: static;
    width: 100%;
    /* l'ultima riga del testo entra nella fascia alta, vuota, dell'immagine */
    margin-top: -7vw;
  }
  .form-card {
    order: 3;
    width: calc(100% - 2 * var(--pad));
    max-width: 480px;
    margin: 22px auto 0;
    padding: 24px 22px 22px;
  }
  .form-thanks { min-height: 0; }
}

@media (max-width: 640px) {
  /* servizi e relatori in una sola colonna */
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service { padding: 20px 18px 22px; }
  .hero-date span, .hero-place strong, .hero-place span { display: block; }
  .hero-date .sep, .hero-place .sep { display: none; }
  .hero-cta { display: flex; }
  .hero-cta .btn { width: 100%; min-width: 0; padding: 0 20px; }
  .hero-visual img { height: 60vw; object-fit: cover; object-position: 50% 50%; }

  .benefits { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child {
    padding: 4px 0 4px 16px;
    border-left: 2px solid var(--blue-dark);
    margin-bottom: 20px;
  }
  .benefit:last-child { margin-bottom: 0; }
  .benefit p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
