/* ==========================================================================
   BTM ITALIA — SEZIONI DELLA HOME
   --------------------------------------------------------------------------
   1. Manifesto del tema (con download del PDF)
   2. Il tema in tre parole
   3. Fascia scura "I protagonisti stanno arrivando" (countdown di btm-teaser)
   4. Due schede: Esponi / Say Yes
   5. Fascia immagine con invito alla newsletter
   Tutti i valori vengono dalle variabili di btm-theme.css.
   Caricato dopo btm-teaser.css.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. ELEMENTI COMUNI
   -------------------------------------------------------------------------- */

/* Bottone chiaro, per le sezioni scure o su immagine */
.btm-btn--light,
.btm-btn--light:link,
.btm-btn--light:visited {
  background: var(--btm-color-bg);
  color: var(--btm-color-primary);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--btm-color-text) 25%, transparent);
}

.btm-btn--light:hover,
.btm-btn--light:focus-visible {
  color: var(--btm-color-primary-dark);
  transform: translateY(-2px);
}

.btm-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Testi su fondo scuro */
.btm-on-dark {
  color: var(--btm-color-on-primary);
}

.btm-on-dark .btm-eyebrow {
  color: var(--btm-color-accent);
}

.btm-on-dark .btm-heading {
  color: var(--btm-color-on-primary);
}

.btm-on-dark .btm-lead {
  color: color-mix(in srgb, var(--btm-color-on-primary) 82%, transparent);
}


/* --------------------------------------------------------------------------
   1. MANIFESTO
   -------------------------------------------------------------------------- */
.btm-manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--btm-section-space) * 1.1);
}

/* La sfera del tema, sfumata, che affiora dall'angolo */
.btm-manifesto::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -320px;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--btm-color-primary-dark) 0%,
    var(--btm-color-primary) 22%,
    color-mix(in srgb, var(--btm-color-primary) 45%, transparent) 42%,
    color-mix(in srgb, var(--btm-color-primary) 12%, transparent) 58%,
    transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.btm-manifesto .btm-container {
  position: relative;
}

.btm-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
  align-items: start;
}

.btm-manifesto__title {
  margin: 0;
  color: var(--btm-color-text);
  font-family: var(--btm-font-serif);
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.btm-manifesto__title em {
  color: var(--btm-color-primary);
  font-style: italic;
  font-weight: 400;
}

.btm-manifesto__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btm-manifesto__lines li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--btm-color-border);
}

.btm-manifesto__lines li:first-child {
  padding-top: 0;
}

/* il "pallino" del tema come segno di ogni strofa */
.btm-manifesto__lines li::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--btm-color-primary) 0%, var(--btm-color-primary-dark) 100%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--btm-color-primary) 14%, transparent);
}

.btm-manifesto__lines p {
  margin: 0;
  color: var(--btm-color-text);
  font-family: var(--btm-font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btm-manifesto__key {
  display: block;
  margin-bottom: 2px;
  color: var(--btm-color-primary);
  font-size: 0.78rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btm-manifesto__claim {
  margin: 40px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--btm-color-primary);
  color: var(--btm-color-text);
  font-family: var(--btm-font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.btm-manifesto__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

.btm-manifesto__file {
  color: var(--btm-color-muted);
  font-family: var(--btm-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   2. IL TEMA IN TRE PAROLE
   -------------------------------------------------------------------------- */
.btm-pillars {
  border-top: 1px solid var(--btm-color-border);
  border-bottom: 1px solid var(--btm-color-border);
  background: var(--btm-color-bg);
}

.btm-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.btm-pillar {
  margin: 0;
  padding: 8px 48px;
  border-left: 1px solid var(--btm-color-border);
}

.btm-pillar:first-child {
  padding-left: 0;
  border-left: 0;
}

.btm-pillar:last-child {
  padding-right: 0;
}

.btm-pillar__icon {
  position: relative;
  isolation: isolate;
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 36px;
  color: var(--btm-color-primary);
}

/* alone sfumato dietro l'icona, come la sfera del tema */
.btm-pillar__icon::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--btm-color-primary) 20%, transparent) 0%, transparent 70%);
  transition: transform 0.6s ease;
}

.btm-pillar:hover .btm-pillar__icon::before {
  transform: scale(1.35);
}

.btm-pillar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.btm-pillar__num {
  margin: 0 0 6px;
  color: var(--btm-color-primary);
  font-family: var(--btm-font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.btm-pillar__title {
  margin: 0 0 16px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-heading);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: var(--btm-weight-heading);
  line-height: 1.1;
}

.btm-pillar__punch {
  margin: 0 0 14px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
}

.btm-pillar__text {
  margin: 0;
  color: var(--btm-color-muted);
  font-family: var(--btm-font-body);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   3. FASCIA SCURA "PROTAGONISTI"
   Il countdown è il componente di btm-teaser.css, qui ricolorato.
   -------------------------------------------------------------------------- */
.btm-band {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--btm-section-space) * 0.9);
  background:
    radial-gradient(circle at 88% 28%,
      var(--btm-color-primary) 0%,
      color-mix(in srgb, var(--btm-color-primary) 60%, transparent) 14%,
      transparent 42%),
    radial-gradient(circle at 8% 110%,
      color-mix(in srgb, var(--btm-color-primary) 45%, transparent) 0%,
      transparent 38%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--btm-color-primary-dark) 55%, #000) 0%,
      var(--btm-color-primary-dark) 100%);
}

/* griglia di pallini del tema, appena percettibile */
.btm-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle,
    color-mix(in srgb, var(--btm-color-on-primary) 7%, transparent) 0,
    color-mix(in srgb, var(--btm-color-on-primary) 7%, transparent) 9px,
    transparent 10px);
  background-size: 26px 26px;
}

.btm-band .btm-container {
  position: relative;
  z-index: 1;
}

.btm-band .btm-teaser__head {
  margin-bottom: 0;
  align-items: center;
}

.btm-band .btm-teaser__title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.btm-band__cta {
  margin-top: 32px;
}

.btm-band .btm-countdown__label,
.btm-band .btm-countdown__name {
  color: color-mix(in srgb, var(--btm-color-on-primary) 70%, transparent);
}

.btm-band .btm-countdown__unit {
  border-left-color: color-mix(in srgb, var(--btm-color-on-primary) 22%, transparent);
}

.btm-band .btm-countdown__value,
.btm-band .btm-countdown__done {
  color: var(--btm-color-on-primary);
}

.btm-band .btm-countdown__unit:first-child .btm-countdown__value {
  color: var(--btm-color-accent);
}


/* --------------------------------------------------------------------------
   4. DUE SCHEDE: ESPONI / SAY YES
   -------------------------------------------------------------------------- */
.btm-duo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.btm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--btm-color-border);
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-bg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--btm-color-text) 12%, transparent);
}

.btm-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}

.btm-card__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.btm-card:hover .btm-card__media img {
  transform: scale(1.04);
}

/* velo magenta in basso sulla foto */
.btm-card__media--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 45%,
    color-mix(in srgb, var(--btm-color-primary-dark) 55%, transparent) 100%);
  pointer-events: none;
}

.btm-card__chip {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--btm-color-bg);
  color: var(--btm-color-primary);
  font-family: var(--btm-font-body);
  font-size: 0.68rem;
  font-weight: var(--btm-weight-strong);
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Say Yes: due anelli di pallini che si intrecciano */
.btm-card__media--sayyes {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--btm-color-primary) 16%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 72% 60%, color-mix(in srgb, var(--btm-color-accent) 30%, transparent) 0%, transparent 55%),
    var(--btm-color-surface);
}

.btm-rings {
  width: 62%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}

.btm-rings__a circle { fill: var(--btm-color-primary); }
.btm-rings__b circle { fill: var(--btm-color-accent-dark); }

.btm-rings__a,
.btm-rings__b {
  transform-box: fill-box;
  transform-origin: center;
}

.btm-rings__a { animation: btm-ring-spin 60s linear infinite; }
.btm-rings__b { animation: btm-ring-spin 60s linear infinite reverse; }

@keyframes btm-ring-spin {
  to { transform: rotate(360deg); }
}

.btm-card__signature {
  position: absolute;
  left: 24px;
  bottom: 14px;
  margin: 0;
  color: var(--btm-color-primary-dark);
  font-family: var(--btm-font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.btm-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 40px 40px;
}

.btm-card__title {
  margin: 0 0 14px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-heading);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: var(--btm-weight-strong);
  line-height: 1.2;
}

.btm-card__text {
  margin: 0 0 24px;
  color: var(--btm-color-muted);
  font-family: var(--btm-font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.btm-card__body .btm-btn {
  margin-top: auto;
}

/* Numeri dell'edizione precedente */
.btm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.btm-stats li {
  margin: 0;
}

.btm-stats strong {
  display: block;
  color: var(--btm-color-primary);
  font-family: var(--btm-font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.1;
}

.btm-stats span {
  display: block;
  margin-top: 4px;
  color: var(--btm-color-muted);
  font-family: var(--btm-font-body);
  font-size: 0.78rem;
  line-height: 1.35;
}

.btm-stats__caption {
  margin: 0 0 28px;
  color: var(--btm-color-muted);
  font-family: var(--btm-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Etichette (Say Yes) */
.btm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.btm-tags li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--btm-color-border);
  border-radius: 999px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}


/* --------------------------------------------------------------------------
   5. FASCIA IMMAGINE CON INVITO ALLA NEWSLETTER
   -------------------------------------------------------------------------- */
.btm-ctaband {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 260px;
  overflow: hidden;
  padding-block: 48px;
}

.btm-ctaband__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.btm-ctaband::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--btm-color-primary-dark) 88%, transparent) 0%,
    color-mix(in srgb, var(--btm-color-primary-dark) 60%, transparent) 45%,
    color-mix(in srgb, var(--btm-color-primary-dark) 10%, transparent) 85%);
}

.btm-ctaband .btm-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.btm-ctaband__text {
  margin: 0;
  max-width: 620px;
  color: var(--btm-color-on-primary);
  font-family: var(--btm-font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 300;
  line-height: 1.25;
}

.btm-ctaband__text .btm-eyebrow {
  margin-bottom: 10px;
}


/* --------------------------------------------------------------------------
   6. RESPONSIVE E MOVIMENTO RIDOTTO
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .btm-manifesto__grid {
    gap: 56px;
  }

  .btm-pillar {
    padding: 8px 28px;
  }

  .btm-card__body {
    padding: 28px 28px 32px;
  }
}

@media (max-width: 991.98px) {
  .btm-manifesto__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .btm-manifesto::before {
    width: 440px;
    height: 440px;
    top: -140px;
    right: -180px;
  }

  .btm-pillars__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btm-pillar,
  .btm-pillar:first-child,
  .btm-pillar:last-child {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 28px;
    padding: 32px 0;
    border-left: 0;
    border-top: 1px solid var(--btm-color-border);
  }

  .btm-pillar:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .btm-pillar__icon {
    grid-row: span 4;
    margin-bottom: 0;
  }

  .btm-duo__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .btm-manifesto {
    padding-block: calc(var(--btm-section-space) * 0.65);
  }

  .btm-pillar,
  .btm-pillar:first-child,
  .btm-pillar:last-child {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 20px;
  }

  .btm-pillar__icon {
    width: 44px;
    height: 44px;
  }

  .btm-band {
    padding-block: calc(var(--btm-section-space) * 0.6);
  }

  .btm-stats {
    gap: 10px;
  }

  .btm-ctaband {
    min-height: 320px;
  }

  .btm-ctaband::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--btm-color-primary-dark) 80%, transparent) 0%,
      color-mix(in srgb, var(--btm-color-primary-dark) 70%, transparent) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btm-rings__a,
  .btm-rings__b {
    animation: none;
  }

  .btm-card,
  .btm-card__media img,
  .btm-pillar__icon::before {
    transition: none;
  }

  .btm-card:hover {
    transform: none;
  }
}
