/* =====================================================================
   IRIGuest — Reception digitale: stili specifici /reception-digitale/
   Caricato dopo site.css + header.css + obbligo.css.
   Usa le variabili globali definite in site.css.
   Componenti: hero con immagine, timeline flusso, compare tradizionale/
   digitale, advantage cards, context grid, cost grid, CTA IRIGuest.
   ===================================================================== */

/* =====================================================================
   HERO premium full-bleed (testo a sinistra, foto a destra che sfuma
   sotto il titolo). Stessa logica del #top.hero della homepage, ma su
   fondo dark coerente IRIGuest. Sfumatura realizzata in CSS.
   ===================================================================== */
.reception-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 580px;
  padding: 0;                 /* annulla il padding globale di section: evita un hero troppo alto che zooma/taglia la foto */
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 88% -12%, rgba(46,155,196,.20), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0E3344 100%);
}

/* Foto full-bleed sul lato destro (display:contents → l'img va in flusso su mobile) */
.reception-hero__picture { display: contents; }
.reception-hero__photo {
  position: absolute;
  right: 0; top: 0;
  width: 62%; height: 100%;
  object-fit: cover;
  object-position: 80% center;  /* mostra il tablet con l'app, mantenendo la receptionist come contesto */
  z-index: 1;
  pointer-events: none;
}

/* Sfumatura: la foto si dissolve nel fondo dark sotto al titolo */
.reception-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(95deg, var(--ink) 0%, var(--ink) 28%, rgba(8,32,43,.78) 42%, rgba(8,32,43,.28) 55%, rgba(8,32,43,0) 70%),
    linear-gradient(0deg, rgba(8,32,43,.42) 0%, rgba(8,32,43,0) 24%);
}

/* Linea decorativa verde/azzurra discreta lungo il bordo inferiore */
.reception-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 16%, var(--bright) 50%, #57c785 82%, transparent 100%);
  opacity: .9;
  z-index: 4;
}

.reception-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 88px;
  padding-bottom: 88px;
}

/* ---- Colonna testo --------------------------------------------------- */
.reception-hero__content { min-width: 0; max-width: 600px; }

.reception-hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 14px;
  border-radius: var(--pill);
  background: rgba(46,155,196,.14);
  border: 1px solid rgba(46,155,196,.35);
  color: #BFE6F2;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.reception-hero__badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bright);
  box-shadow: 0 0 0 4px rgba(46,155,196,.22);
}

.reception-hero__title {
  margin: 20px 0 0;
  color: #fff;
  font-weight: 400;
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.reception-hero__title-lead { display: block; }
.reception-hero__title em {
  display: block;
  font-style: italic;
  font-weight: 600;
  /* Spazio per il corsivo (overhang a destra) e i discendenti (p), poi compensato col margine
     negativo per non spostare il layout. Evita il taglio del glyph con background-clip:text. */
  padding: .02em .14em .14em 0;
  margin: 0 -.14em -.14em 0;
  line-height: 1.16;
  background: linear-gradient(96deg, #8fd6ee 0%, var(--bright) 55%, #6fd49a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--bright);
}

.reception-hero__lead {
  margin: 20px 0 0;
  color: var(--invert);
  font-size: 1.14rem;
  line-height: 1.7;
}
.reception-hero__lead strong { color: #fff; font-weight: 600; }
.reception-hero__sub {
  margin: 12px 0 0;
  color: var(--invert-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---- Value points (griglia minimal con icone) ------------------------ */
.reception-hero__values {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 26px;
}
.rh-value { display: flex; align-items: flex-start; gap: 12px; }
.rh-value__ico {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(46,155,196,.13);
  border: 1px solid rgba(46,155,196,.30);
  color: var(--bright);
}
.rh-value__ico svg { width: 19px; height: 19px; }
.rh-value__txt {
  min-width: 0;
  font-size: .9rem; line-height: 1.4;
  color: var(--invert-muted);
}
.rh-value__txt strong {
  display: block;
  color: #fff; font-weight: 600; font-size: .96rem;
  margin-bottom: 2px;
}

/* ---- CTA ------------------------------------------------------------- */
.reception-hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
}
.reception-hero__btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.reception-hero__btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* ---- Timeline 8-step flusso visitatore ------------------------------- */
.rd-timeline {
  margin: 28px 0;
  position: relative;
}
/* Linea verticale di connessione */
.rd-timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--bright));
  border-radius: 2px;
}
.rd-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 0 0 16px;
  position: relative;
}
.rd-step:last-child { margin-bottom: 0; }
.rd-step-no {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-deep), var(--bright));
  color: #fff;
  font-weight: 700;
  font-size: .97rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(31,111,147,.30);
  position: relative; z-index: 1;
}
.rd-step-body {
  flex: 1; min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(8,32,43,.08);
  border-radius: 14px;
  padding: 14px 18px;
}
.rd-step-body h3 {
  margin: 0 0 4px !important;
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.rd-step-body p {
  margin: 0 !important;
  font-size: .92rem !important;
  line-height: 1.58 !important;
  color: var(--text-muted) !important;
}
@media (max-width: 480px) {
  .rd-timeline::before { left: 19px; }
  .rd-step-no { width: 40px; height: 40px; flex: 0 0 40px; font-size: .85rem; }
}

/* ---- Confronto: Reception tradizionale vs Reception digitale ---------- */
.rd-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.rd-vs__col {
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid;
}
.rd-vs__col--old {
  background: #FDFAF5;
  border-color: rgba(8,32,43,.13);
}
.rd-vs__col--new {
  background: #F1F8FB;
  border-color: rgba(31,111,147,.26);
}
.rd-vs__head {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .97rem;
  margin: 0 0 14px;
}
.rd-vs__head svg { width: 20px; height: 20px; flex: 0 0 auto; }
.rd-vs__col--old .rd-vs__head { color: var(--text-muted); }
.rd-vs__col--new .rd-vs__head { color: var(--teal-deep); }
.rd-vs ul { list-style: none; margin: 0; padding: 0; }
.rd-vs li {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 9px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft, #34474f);
}
.rd-vs li:last-child { margin-bottom: 0; }
.rd-vs li::before {
  position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: 1rem;
}
.rd-vs__col--old li::before { content: "–"; color: #9A8060; }
.rd-vs__col--new li::before { content: "✓"; color: var(--teal); }
@media (max-width: 600px) {
  .rd-vs { grid-template-columns: 1fr; }
}

/* ---- Advantage cards (8 vantaggi) ------------------------------------ */
.rd-adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 15px;
  margin: 22px 0 0;
}
.rd-adv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.rd-adv-card:hover {
  box-shadow: 0 12px 30px -10px rgba(31,111,147,.28);
  border-color: rgba(46,155,196,.50);
}
.rd-adv-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 13px;
  background: linear-gradient(150deg, #E9F3F6, #DCEBF0);
  color: var(--teal);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              background .25s ease, color .25s ease, box-shadow .25s ease;
}
.rd-adv-card:hover .rd-adv-ico {
  transform: scale(1.09) rotate(-4deg);
  background: linear-gradient(150deg, var(--bright), var(--teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,111,147,.28);
}
.rd-adv-ico svg { width: 21px; height: 21px; }
.rd-adv-card h3 {
  margin: 0 0 7px !important;
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.rd-adv-card p {
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
}

/* ---- Context cards (6 settori / contesti) ---------------------------- */
.rd-ctx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}
.rd-ctx-card {
  background: var(--surface);
  border: 1px solid rgba(8,32,43,.08);
  border-radius: 14px;
  padding: 18px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rd-ctx-card:hover {
  border-color: rgba(31,111,147,.30);
  box-shadow: 0 6px 20px -8px rgba(31,111,147,.22);
}
.rd-ctx-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(31,111,147,.11); color: var(--teal-deep);
  display: grid; place-items: center; flex: 0 0 auto;
  transition: background .18s ease, color .18s ease;
}
.rd-ctx-card:hover .rd-ctx-ico {
  background: var(--teal);
  color: #fff;
}
.rd-ctx-ico svg { width: 20px; height: 20px; }
.rd-ctx-body h3 {
  margin: 0 0 4px !important;
  font-size: .95rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.rd-ctx-body p {
  margin: 0 !important;
  font-size: .87rem !important;
  line-height: 1.52 !important;
  color: var(--text-muted) !important;
}
@media (max-width: 620px) { .rd-ctx-grid { grid-template-columns: 1fr; } }

/* ---- Cost factor chips ----------------------------------------------- */
.rd-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 18px 0;
}
.rd-cost-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex; align-items: flex-start; gap: 11px;
}
.rd-cost-item .ci-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(31,111,147,.10); color: var(--teal-deep);
  display: grid; place-items: center; flex: 0 0 auto;
}
.rd-cost-item .ci-ico svg { width: 16px; height: 16px; }
.rd-cost-item strong {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 2px;
}
.rd-cost-item span {
  font-size: .8rem; color: var(--text-muted);
  line-height: 1.38; display: block;
}
@media (max-width: 700px) { .rd-cost-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .rd-cost-grid { grid-template-columns: 1fr; } }

/* ---- CTA IRIGuest (sezione 10) --------------------------------------- */
.rd-iriguest-cta {
  margin: 28px 0 0;
  background:
    radial-gradient(700px 400px at 80% -20%, rgba(46,155,196,.22), transparent 60%),
    linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 60%, #0E3344 100%);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.rd-iriguest-cta h3 {
  color: #fff !important;
  margin: 0 0 10px !important;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
}
.rd-iriguest-cta p {
  color: rgba(255,255,255,.80) !important;
  margin: 0 0 24px !important;
  font-size: 1rem !important;
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.rd-iriguest-cta .actions { justify-content: center; }
.rd-iriguest-cta .btn-secondary {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
.rd-iriguest-cta .btn-secondary:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.70);
}

/* ---- Inline link (article body text) --------------------------------- */
.inline-link {
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
  text-decoration: none;
}
.inline-link:hover { border-bottom-color: var(--teal); }

/* ---- Link-card cluster (sezione 8 – quando il cartaceo non basta) --- */
.rd-link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}
.rd-link-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
}
.rd-link-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px -8px rgba(31,111,147,.28);
}
.rd-link-card .lc-tag {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin-bottom: 6px; display: block;
}
.rd-link-card h3 {
  margin: 0 0 5px !important;
  font-size: .97rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.rd-link-card p {
  margin: 0 !important;
  font-size: .87rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}
.rd-link-card .lc-more {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; font-weight: 600; color: var(--teal);
}
.rd-link-card .lc-more::after { content: "→"; transition: transform .18s ease; }
.rd-link-card:hover .lc-more::after { transform: translateX(4px); }
@media (max-width: 580px) { .rd-link-cards { grid-template-columns: 1fr; } }

/* ---- Hero responsive -------------------------------------------------- */
/* Tablet: foto più stretta, testo con un velo dark in più per leggibilità */
@media (max-width: 1080px) {
  .reception-hero { min-height: 540px; }
  .reception-hero__photo { width: 56%; object-position: 76% center; }
  .reception-hero::after {
    background:
      linear-gradient(95deg, var(--ink) 0%, var(--ink) 32%, rgba(8,32,43,.82) 46%, rgba(8,32,43,.34) 58%, rgba(8,32,43,0) 72%),
      linear-gradient(0deg, rgba(8,32,43,.42) 0%, rgba(8,32,43,0) 24%);
  }
}

/* Mobile: testo prima, immagine sotto a tutta larghezza (come #top.hero) */
@media (max-width: 860px) {
  .reception-hero {
    flex-direction: column;
    min-height: auto;
  }
  .reception-hero::after { display: none; }
  .reception-hero__inner {
    order: 1;
    padding-top: 56px;
    padding-bottom: 34px;
  }
  .reception-hero__content { max-width: 100%; }
  .reception-hero__picture { display: block; order: 2; width: 100%; }
  .reception-hero__photo {
    position: static;
    width: 100%;
    height: clamp(240px, 58vw, 360px);
    object-position: 64% center;
  }
}

@media (max-width: 560px) {
  .reception-hero__values { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .reception-hero__cta { gap: 10px; }
  .reception-hero__cta .btn { flex: 1 1 100%; }
}

/* Value points in colonna singola solo su schermi molto stretti */
@media (max-width: 360px) {
  .reception-hero__values { grid-template-columns: 1fr; }
}
