/* =========================================================
   Component styles: nav, hero, intro, programma, iscrizione,
   footer, buttons, cards. BEM-ish, niente utility class.
   ========================================================= */

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border: 0;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.btn--primary {
  color: var(--white);
  background: var(--magenta);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  background: var(--magenta-dark);
  box-shadow: var(--shadow-cta-hover);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  z-index: var(--z-nav);
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 234, 236, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: grid;
  min-height: 80px;
  align-items: center;
  gap: var(--s-6);
  grid-template-columns: auto 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__name {
  color: var(--navy-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
}

.brand__name small {
  display: block;
  margin-top: 5px;
  color: var(--teal-mid);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--navy-2);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--teal-dark);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 86%, rgba(236, 10, 126, 0.84) 0 92px, transparent 94px),
    radial-gradient(circle at 86% 7%, transparent 0 170px, rgba(255, 255, 255, 0.12) 171px 172px, transparent 173px),
    linear-gradient(112deg, #58adbd 0%, #1b6079 51%, #0e2e4f 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 66%, rgba(255, 255, 255, 0.04) 66% 77%, transparent 77%),
    linear-gradient(167deg, transparent 0 72%, rgba(14, 46, 79, 0.34) 72% 100%);
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 720px;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
  padding-block: 74px 82px;
}

.hero__copy {
  max-width: 650px;
}

.hero__eyebrow {
  margin-bottom: var(--s-6);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 650px;
  margin-bottom: var(--s-6);
  color: var(--white);
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero__subtitle {
  max-width: 620px;
  margin-bottom: var(--s-7);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.65;
}

.hero__panel {
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  color: var(--navy-2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px -34px rgba(5, 30, 54, 0.72);
}

.hero__visual {
  position: relative;
  margin: 0;
}

.hero__visual::before {
  position: absolute;
  inset: 26px -18px -18px 26px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px -34px rgba(5, 30, 54, 0.72);
  object-fit: cover;
  object-position: center;
}

.hero__panel h2 {
  margin-bottom: var(--s-3);
  color: var(--navy-2);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.hero__panel > p {
  margin-bottom: var(--s-6);
  color: var(--slate);
}

.hero__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.hero__fact {
  display: grid;
  align-items: center;
  padding-block: 17px;
  border-top: 1px solid var(--line);
  gap: 14px;
  grid-template-columns: 42px 1fr;
}

.hero__fact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.hero__fact small {
  display: block;
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__fact strong {
  display: block;
  margin-top: 2px;
  color: var(--navy-2);
  font-size: 15px;
}

/* ---------- Intro ---------- */

.intro {
  padding: 110px 0;
  background: var(--white);
}

.intro__grid {
  display: grid;
  align-items: start;
  gap: clamp(48px, 8vw, 100px);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.intro__main h2,
.section-head h2,
.iscrizione-aside h2 {
  margin-bottom: var(--s-6);
  color: var(--slate);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.intro__main > p {
  margin-bottom: var(--s-7);
  color: var(--navy-2);
  font-size: 17px;
  line-height: 1.75;
}

.highlight-box {
  padding: 26px 28px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teal-soft);
}

.highlight-box h3 {
  margin-bottom: var(--s-3);
  color: var(--navy-2);
  font-size: 20px;
  font-weight: 600;
}

.highlight-box p {
  margin: 0;
  color: var(--slate);
}

.highlight-media {
  display: grid;
  overflow: hidden;
  align-items: stretch;
  border-radius: var(--radius);
  background: var(--teal-soft);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
}

.highlight-media .highlight-box {
  border-radius: 0;
}

.highlight-media figure {
  min-height: 250px;
  margin: 0;
}

.highlight-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
}

.side-box {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}

.side-box h3 {
  margin-bottom: var(--s-6);
  color: var(--navy-2);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.side-list {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  position: relative;
  padding-left: 34px;
  color: var(--slate);
}

.side-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  font-weight: 700;
  content: "✓";
}

.side-list strong {
  color: var(--navy-2);
}

/* ---------- Programma ---------- */

.programma {
  padding: 100px 0;
  background: var(--bg-soft);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  max-width: 710px;
  margin: 0 auto;
  color: var(--slate);
  font-size: 17px;
}

.programma__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prog-card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.prog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 150, 173, 0.38);
  box-shadow: var(--shadow-card);
}

.prog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}

.prog-card__num {
  color: var(--teal-mid);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.prog-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.area-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.prog-card h3 {
  margin-bottom: 22px;
  color: var(--navy-2);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.card-block + .card-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card-block__label {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-block p {
  margin: 0;
  color: var(--slate);
  line-height: 1.7;
}

/* ---------- Iscrizione ---------- */

.iscrizione {
  padding: 105px 0;
  background: var(--white);
}

.iscrizione-aside {
  max-width: 800px;
  margin: 0 auto 38px;
  text-align: center;
}

.iscrizione-aside .sub {
  max-width: 720px;
  margin: 0 auto var(--s-6);
  color: var(--slate);
  font-size: 17px;
}

.alert {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  background: var(--teal-soft);
  text-align: left;
}

.alert svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Wrapper invisibile: nessuno stile, Calendly fa quello che vuole */
.calendly-card {
  display: block;
}

/* Nessuna altezza fissa: il box si espande per contenere tutto il widget.
   Calendly inietta l'altezza reale via JS sull'iframe (700/720/940px a seconda del layout).
   Niente scrollbar interna, niente spazio vuoto. */
.calendly-embed {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Forza larghezza piena senza toccare l'altezza: Calendly gestisce la sua. */
.calendly-inline-widget,
.calendly-inline-widget iframe {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block;
}

.technical-note {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--slate);
  background: var(--bg-soft);
  font-size: 14px;
  text-align: left;
}

.technical-note summary {
  color: var(--navy-2);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.technical-note p {
  margin: 14px 0 0;
}

.confirmation {
  max-width: 850px;
  margin: 28px auto 0;
  color: var(--slate);
  font-size: 13px;
  text-align: center;
}

/* ---------- Reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease),
    transform var(--t-reveal) var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.foot {
  display: grid;
  color: var(--white);
  background: var(--navy);
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.foot__contact {
  padding: 64px max(28px, calc((100vw - var(--max-w)) / 2));
  background: var(--teal-dark);
  display: flex;
  align-items: flex-start;
}

.foot__contact-inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--white);
}

.foot__brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
}

.foot__brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.foot__brand-name small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.foot__contact h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 28px;
  font-weight: 500;
}

.foot__line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.4;
}

.foot__line a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot__line a:hover {
  color: var(--white);
}

.foot__icon {
  color: var(--white);
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.foot__contact .btn {
  margin-top: 8px;
  width: auto;
  white-space: nowrap;
}

.foot__nav > .foot__socials {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 0;
  width: auto;
  align-self: flex-start;
}

.foot__nav > .foot__socials > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.foot__nav > .foot__socials > a:hover,
.foot__nav > .foot__socials > a:focus-visible {
  background: var(--magenta);
  transform: translateY(-2px);
}

.foot__nav > .foot__socials > a > svg {
  display: block;
  width: 20px;
  height: 20px;
}

.foot__nav > .foot__socials > a > svg[fill="none"] {
  /* Preserva il fill="none" inline su SVG tipo Instagram (stroke-only) */
  fill: none;
}

.foot__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 64px max(28px, calc((100vw - var(--max-w)) / 2));
}

.foot__nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.foot__nav a,
.copyright a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.foot__nav a:hover,
.copyright a:hover {
  color: var(--white);
}

.copyright {
  padding: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  grid-column: 1 / -1;
}
