/* ===================================================================
   Emil Marmi — Landing page
   Mobile-first, fluida (rem + clamp), responsive.
   =================================================================== */

/* ---------- Font: Gotham ---------- */
@font-face {
  font-family: 'Gotham';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Light/Gotham Light.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Book/Gotham Book.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Medium/Gotham Medium.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Bold/Gotham Bold.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Black/Gotham Black.otf') format('opentype');
}

/* ---------- Palette + token ---------- */
:root {
  /* Palette */
  --white-color: #ffffff;
  --light-grey-color: #dfdfdb;
  --dark-grey-color: #868680;
  --dark-color: #010102;

  --whatsapp-color: #25d366;

  /* Larghezza massima della colonna di contenuto (layout verticale mobile) */
  --content-max: 34rem;

  /* Spaziatura fluida coerente in tutto il sito */
  --space-3xs: 0.4rem;
  --space-2xs: 0.6rem;
  --space-xs:  0.9rem;
  --space-sm:  1.2rem;
  --space-md:  1.8rem;
  --space-lg:  2.6rem;
  --space-xl:  3.6rem;

  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/* Scaling fluido globale: tutto è in rem, quindi cresce/diminuisce
   con la dimensione dello schermo, con limiti min/max. */
html {
  font-size: clamp(15px, 4.1vw, 19px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Gotham', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--white-color);
  background: var(--dark-color);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

strong, b { font-weight: 700; }

/* ---------- Layout helper ---------- */
.section {
  padding-block: var(--space-xl);
  padding-inline: var(--space-md);
  background-color: var(--dark-color);
}

/* Stacca un po' dal bordo superiore (gap moderato, < default) */
.section--pull-up {
  padding-top: var(--space-lg);
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  background-color: var(--white-color);
  background-image: url('/img/hero_bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--dark-color);
  text-align: center;
  padding-block: var(--space-lg) var(--space-xl);
  padding-inline: var(--space-md);
}

.hero__logo {
  width: clamp(8rem, 38vw, 11rem);
  margin: var(--space-md) auto var(--space-md);
}

.hero__intro {
  max-width: 22rem;
  margin-inline: auto;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark-color);
}

/* ===================================================================
   "Con noi ottieni" — card vantaggi
   =================================================================== */
.benefits__card {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  background: var(--light-grey-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  color: var(--dark-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.benefits__list {
  flex: 1 1 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  line-height: 1.35;
}

.benefits__list li {
  position: relative;
  padding-left: 0.9rem;
}

.benefits__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--dark-color);
}

.benefits__img {
  flex: 0 0 38%;
  width: 38%;
  border-radius: var(--radius-md);
  object-fit: cover;
  align-self: stretch;
  min-height: 100%;
}

/* ===================================================================
   Badge grigi (problemi / motivi)
   =================================================================== */
.lead {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.pill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.pill {
  background: var(--dark-grey-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.note {
  text-align: center;
  color: var(--white-color);
  font-size: 1.02rem;
  margin-top: var(--space-md);
}

/* ===================================================================
   Protocollo — step numerati
   =================================================================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step {
  background: var(--light-grey-color);
  color: var(--dark-color);
  border: 1px solid rgba(1, 1, 2, 0.4);
  border-radius: 1.6rem;
  padding: var(--space-md);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  /* Il pill del titolo non arriva al bordo destro: lascia un piccolo respiro */
  padding-right: var(--space-2xs);
}

.step__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  background: var(--dark-color);
  color: var(--white-color);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
}

.step__title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: var(--dark-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.18;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
}

.step__text {
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

/* ===================================================================
   Video (facade lazy-load YouTube)
   =================================================================== */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-color) center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: none;
  padding: 0;
  margin-bottom: var(--space-sm);
}

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  background: rgba(1, 1, 2, 0.55);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video:hover .video__play,
.video:focus-visible .video__play {
  transform: scale(1.08);
  background: var(--dark-color);
}

.video__play::after {
  content: "";
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-color: transparent transparent transparent var(--white-color);
  margin-left: 0.3rem;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================================
   Sezione CTA (chiara)
   =================================================================== */
.cta {
  background: var(--light-grey-color);
  color: var(--dark-color);
  text-align: center;
}

.cta__text {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-block: var(--space-md);
}

.nowrap { white-space: nowrap; }

.cta__heading {
  font-weight: 900;
  font-size: 1.7rem;
  margin-bottom: var(--space-md);
}

.cta__list {
  list-style: none;
  padding: 0;
  max-width: 20rem;
  margin: 0 auto var(--space-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 1.02rem;
}

.cta__list li {
  position: relative;
  padding-left: 1rem;
}

.cta__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--dark-color);
}

/* ---------- Bottoni "Prenota ora" ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 21rem);
  margin-inline: auto;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

/* Icona monocromatica: eredita il colore del testo del bottone */
.btn__icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  color: currentColor;
}

.btn--light {
  background: var(--white-color);
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn--dark {
  background: var(--dark-color);
  color: var(--white-color);
  border: 2px solid var(--dark-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--dark-color);
  color: var(--white-color);
  text-align: center;
  padding-block: var(--space-xl);
  padding-inline: var(--space-md);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.site-footer__brand {
  font-family: 'GFS Didot', 'Didot', 'Bodoni 72', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 1.5rem;
}

.site-footer__social {
  display: flex;
  gap: var(--space-sm);
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--white-color);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: var(--white-color);
  color: var(--dark-color);
  border-color: var(--white-color);
}

.site-footer__social svg {
  width: 1.4rem;
  height: 1.4rem;
}

.site-footer__info {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-grey-color);
}

.site-footer__legal {
  font-size: 0.8rem;
  color: var(--dark-grey-color);
}

/* Il componente powered_by porta i propri stili; resta a piena
   larghezza in fondo alla pagina. */

/* ===================================================================
   Accessibilità
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Su schermi più larghi la colonna resta centrata e leggibile;
   il layout è pensato come single-column verticale (mobile-first). */
@media (min-width: 700px) {
  .hero__intro { font-size: 1.05rem; }
}
