/* ==========================================================================
   BTM ITALIA 2027 — PAGINE DI SEZIONE E BOX DELLA HOME (BOZZA SUL DEV)
   --------------------------------------------------------------------------
   Pagine: B2B Leisure, B2B MICE, BTM Gusto, Travel Trade.
   Home: titolo della sezione a sei box, disegni a pallini dei box, riga data/autore degli articoli.
   Usa solo le variabili di btm-theme.css.
   Per la bozza viene richiamato dal contenuto delle pagine e dal modulo 116;
   al passaggio in produzione va caricato in inc_head_script.php
   dopo btm-components.css e il richiamo nel contenuto va tolto.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. HERO A TUTTA LARGHEZZA
   -------------------------------------------------------------------------- */
.btm-phero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 72vh, 680px);
  padding: 120px 0 72px;
  background-color: var(--btm-color-primary-dark);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.btm-phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--btm-color-primary-dark) 15%, transparent) 0%,
    color-mix(in srgb, var(--btm-color-primary-dark) 55%, transparent) 45%,
    color-mix(in srgb, var(--btm-color-primary-dark) 92%, transparent) 100%);
}

.btm-phero__inner { width: 100%; }
.btm-phero .btm-eyebrow { color: #fff; }

.btm-phero__title {
  margin: 14px 0 22px;
  color: #fff;
  font-family: var(--btm-font-heading);
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.btm-phero__accent {
  display: block;
  color: var(--btm-color-accent);
}

.btm-phero__lead {
  max-width: 680px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.btm-phero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 30px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.5;
}

.btm-phero__meta strong { font-weight: var(--btm-weight-strong); }


/* --------------------------------------------------------------------------
   2. TESTI, ETICHETTE, PULSANTI
   -------------------------------------------------------------------------- */
.btm-pg-head { max-width: 760px; }
.btm-pg-head .btm-heading { margin: 10px 0 18px; }

.btm-pg-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

.btm-pg-text p {
  margin: 0 0 18px;
  color: var(--btm-color-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.btm-pg-text p:last-child { margin-bottom: 0; }

.btm-pg-caption {
  margin: 32px 0 12px;
  color: var(--btm-color-text);
  font-size: 0.8rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btm-pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.btm-pg-chips li {
  padding: 9px 18px;
  border: 1px solid var(--btm-color-border);
  border-radius: 999px;
  background: var(--btm-color-bg);
  color: var(--btm-color-primary);
  font-size: 0.85rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 0.04em;
}

.btm-pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
}

.btm-pg-action { display: flex; flex-direction: column; align-items: flex-start; }

.btm-pg-file {
  margin-top: 8px;
  padding-left: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* Pulsante secondario: bordo pieno, fondo trasparente */
.btm-btn.btm-pg-ghost {
  background: transparent;
  color: var(--btm-color-primary);
  box-shadow: inset 0 0 0 2px currentColor;
}

.btm-btn.btm-pg-ghost:hover,
.btm-btn.btm-pg-ghost:focus-visible {
  background: var(--btm-color-primary);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--btm-color-primary);
}

.btm-phero .btm-btn.btm-pg-ghost,
.btm-pg-join .btm-btn.btm-pg-ghost { color: #fff; }

.btm-phero .btm-btn.btm-pg-ghost:hover,
.btm-phero .btm-btn.btm-pg-ghost:focus-visible,
.btm-pg-join .btm-btn.btm-pg-ghost:hover,
.btm-pg-join .btm-btn.btm-pg-ghost:focus-visible {
  background: #fff;
  color: var(--btm-color-primary-dark);
  box-shadow: inset 0 0 0 2px #fff;
}


/* --------------------------------------------------------------------------
   3. TURNI, NOTE, ELENCHI
   -------------------------------------------------------------------------- */
.btm-pg-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 24px;
  padding: 0;
  list-style: none;
}

.btm-pg-slots--one { grid-template-columns: minmax(0, 560px); }

.btm-pg-slot {
  padding: 28px 32px;
  border: 1px solid var(--btm-color-border);
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-bg);
}

.btm-pg-slot__label {
  display: block;
  color: var(--btm-color-primary);
  font-size: 0.78rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btm-pg-slot__time {
  display: block;
  margin-top: 8px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
}

.btm-pg-slot__days {
  display: block;
  margin-top: 8px;
  color: var(--btm-color-text);
  opacity: 0.75;
}

.btm-pg-note {
  margin: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--btm-color-primary);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--btm-color-primary) 7%, var(--btm-color-bg));
  color: var(--btm-color-text);
  font-weight: var(--btm-weight-strong);
  line-height: 1.6;
}

.btm-pg-plus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0 0;
  padding: 24px 28px;
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-bg);
  color: var(--btm-color-text);
  line-height: 1.65;
}

.btm-pg-plus__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--btm-color-accent) 45%, var(--btm-color-bg));
  color: var(--btm-color-primary-dark);
}

.btm-pg-plus__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btm-pg-plus p { margin: 0; }

.btm-pg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.btm-pg-list li {
  position: relative;
  padding: 18px 8px 18px 44px;
  border-bottom: 1px solid var(--btm-color-border);
  color: var(--btm-color-text);
  line-height: 1.55;
}

.btm-pg-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--btm-color-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--btm-color-primary) 18%, transparent);
}

.btm-pg-callout {
  margin: 40px 0 0;
  padding: 28px 32px;
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-surface);
  color: var(--btm-color-text);
  font-size: 1.1rem;
  line-height: 1.65;
}

.btm-pg-quote {
  max-width: 920px;
  margin: 0 auto;
  color: var(--btm-color-primary-dark);
  font-family: var(--btm-font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
}


/* --------------------------------------------------------------------------
   4. ATTIVITA' IN SEQUENZA (Travel Trade)
   -------------------------------------------------------------------------- */
.btm-pg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.btm-pg-step {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 30px;
  border: 1px solid var(--btm-color-border);
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-bg);
}

.btm-pg-step__when {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--btm-color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btm-pg-step__when--soft {
  background: color-mix(in srgb, var(--btm-color-accent) 45%, var(--btm-color-bg));
  color: var(--btm-color-primary-dark);
}

.btm-pg-step h3 {
  margin: 0 0 10px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
}

.btm-pg-step p {
  margin: 0;
  color: var(--btm-color-text);
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   5. BOX AGENZIE DI VIAGGIO (Travel Trade)
   -------------------------------------------------------------------------- */
.btm-pg-adv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 2px solid var(--btm-color-primary);
  border-radius: var(--btm-radius-xl);
  background: var(--btm-color-bg);
}

.btm-pg-adv .btm-heading {
  margin: 10px 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.btm-pg-adv p {
  margin: 0;
  color: var(--btm-color-text);
  font-size: 1.05rem;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   6. PROPOSTA ESPOSITIVA: SCHEDE CON RENDER E PREZZO
   -------------------------------------------------------------------------- */
.btm-pg-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.btm-pg-offer {
  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);
}

.btm-pg-offer__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--btm-color-surface);
}

.btm-pg-offer__media picture { display: block; height: 100%; }

.btm-pg-offer__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.btm-pg-offer__media--contain img { object-fit: contain; }

/* Riquadro panoramico per foto orizzontali (T-Trade) */
.btm-pg-offer__media--wide { aspect-ratio: 2 / 1; }

.btm-pg-offer__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 32px 36px 36px;
}

.btm-pg-offer__body h3 {
  margin: 8px 0 18px;
  color: var(--btm-color-text);
  font-family: var(--btm-font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.btm-pg-check {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.btm-pg-check li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--btm-color-text);
  line-height: 1.5;
}

.btm-pg-check li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 4px;
  width: 11px;
  height: 6px;
  border-bottom: 2.5px solid var(--btm-color-primary);
  border-left: 2.5px solid var(--btm-color-primary);
  transform: rotate(-45deg);
}

.btm-pg-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--btm-color-border);
}

.btm-pg-price__label {
  flex-basis: 100%;
  color: var(--btm-color-text);
  font-size: 0.78rem;
  font-weight: var(--btm-weight-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btm-pg-price strong {
  color: var(--btm-color-primary);
  font-family: var(--btm-font-heading);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
}

.btm-pg-price span:last-child {
  color: var(--btm-color-text);
  font-weight: var(--btm-weight-strong);
}

.btm-pg-offer__nb {
  margin: 0 0 24px;
  color: var(--btm-color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Scheda singola a due colonne (Gusto) */
.btm-pg-offer--wide {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  margin-top: 40px;
}

.btm-pg-offer--wide .btm-pg-offer__media { aspect-ratio: auto; min-height: 100%; }


/* --------------------------------------------------------------------------
   7. FASCIA FINALE "COME PARTECIPARE"
   -------------------------------------------------------------------------- */
.btm-pg-join {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--btm-color-primary-dark);
  color: #fff;
}

.btm-pg-join::before {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background-image: radial-gradient(circle, color-mix(in srgb, #fff 22%, transparent) 2px, transparent 2.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  pointer-events: none;
}

.btm-pg-join__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
}

.btm-pg-join .btm-eyebrow,
.btm-pg-join .btm-heading { color: #fff; }
.btm-pg-join .btm-heading { margin: 10px 0 18px; }

.btm-pg-join p {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
}

.btm-pg-join__cta { justify-self: end; }
.btm-pg-join__cta .btm-pg-actions { margin-top: 0; }
.btm-pg-join .btm-pg-file { color: #fff; }


/* --------------------------------------------------------------------------
   8. HOME: SEZIONE A SEI BOX
   -------------------------------------------------------------------------- */
.btm-opps__head { margin-bottom: 40px; }
.btm-opps__head .btm-heading { margin: 0; }

.btm-card__media--b2b,
.btm-card__media--mice,
.btm-card__media--trade,
.btm-card__media--gusto {
  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-match,
.btm-mice,
.btm-trade,
.btm-grapes {
  width: 62%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}

/* B2B Leisure: buyer e seller collegati */
.btm-match__links path { fill: none; stroke: var(--btm-color-primary); stroke-opacity: 0.22; stroke-width: 2; }
.btm-match__hot path { fill: none; stroke: var(--btm-color-accent-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 9; animation: btm-dash-flow 2.4s linear infinite; }
.btm-match__a circle { fill: var(--btm-color-primary); }
.btm-match__b circle { fill: var(--btm-color-accent-dark); }

/* B2B MICE: un tavolo e i suoi posti */
.btm-mice__table { fill: color-mix(in srgb, var(--btm-color-accent) 55%, transparent); }
.btm-mice__seat { fill: var(--btm-color-primary); transform-box: fill-box; transform-origin: center; animation: btm-seat-pulse 3.6s ease-in-out infinite; }
.btm-mice__seat--b { fill: var(--btm-color-accent-dark); }

/* Travel Trade: una sfera di pallini e le rotte */
.btm-trade__globe circle { fill: var(--btm-color-primary); }
.btm-trade__route { fill: none; stroke: var(--btm-color-accent-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 9; animation: btm-dash-flow 2.4s linear infinite; }
.btm-trade__dest { fill: var(--btm-color-accent-dark); }

/* Gusto: grappolo di pallini */
.btm-grapes__a circle { fill: var(--btm-color-primary); }
.btm-grapes__b circle { fill: var(--btm-color-accent-dark); }
.btm-grapes__stem { fill: none; stroke: var(--btm-color-primary-dark); stroke-width: 4; stroke-linecap: round; }
.btm-grapes__leaf { fill: var(--btm-color-accent); fill-opacity: 0.75; }
.btm-grapes__bunch { transform-box: fill-box; transform-origin: 50% 0; animation: btm-grapes-sway 6s ease-in-out infinite; }

@keyframes btm-dash-flow { to { stroke-dashoffset: -30; } }
@keyframes btm-seat-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes btm-grapes-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.btm-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.btm-card__actions .btm-btn { margin-top: 0; }


/* --------------------------------------------------------------------------
   8b. HOME: ULTIMI ARTICOLI (includes/modules/contents_blog_last.php)
   Data a sinistra e autore a destra sulla stessa riga.
   -------------------------------------------------------------------------- */
.news-section .news-block .post-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}

.news-section .news-block .post-info li {
  margin: 0;
}

.news-section .news-block .post-info .post-info__author {
  margin-left: auto;
  text-align: right;
  font-weight: var(--btm-weight-strong);
}


/* --------------------------------------------------------------------------
   9. RESPONSIVE E MOVIMENTO RIDOTTO
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .btm-pg-split,
  .btm-pg-join__grid,
  .btm-pg-offer--wide { grid-template-columns: 1fr; gap: 28px; }
  .btm-pg-offer--wide { gap: 0; }
  .btm-pg-offer--wide .btm-pg-offer__media { aspect-ratio: 4 / 3; min-height: 0; }
  .btm-pg-join__cta { justify-self: start; }
  .btm-pg-steps { grid-template-columns: 1fr; }
  .btm-pg-adv { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .btm-phero { min-height: 520px; padding: 96px 0 48px; }
  .btm-pg-list,
  .btm-pg-offers { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .btm-pg-slots { grid-template-columns: 1fr; }
  .btm-pg-slot { padding: 24px; }
  .btm-pg-offer__body { padding: 26px 24px 28px; }
  .btm-pg-plus { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btm-match__hot path,
  .btm-trade__route,
  .btm-mice__seat,
  .btm-grapes__bunch { animation: none; }
}
