/* =============================================
   TECNOLOGIE — tecnologie_altro.css
   Stile condiviso per le 6 pagine tecnologia:
   Chatbot · Pharma Coupon · App · API · Cashback · HUB
   Bootstrap 5.3 + token da css.css
   ============================================= */


/* ---- PAGE HERO STRIP ---- */
.tec-page-hero {
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, .2) 0%,
      rgba(0, 0, 0, .6) 55%,
      rgba(0, 0, 0, .92) 100%
    ),
    url('../img/bg_tech.jpg') center / cover no-repeat;
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--fd-red);
}

.tec-page-hero::before {
  content: attr(data-tech);
  position: absolute;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-display);
}

.tec-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 1rem;
}
.tec-page-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fd-red);
}

.tec-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--fd-white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.tec-page-hero__title em {
  color: var(--fd-red);
  font-style: normal;
}

.tec-page-hero__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
  max-width: 560px;
}

.tec-page-hero__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tec-page-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .6s ease;
}
.tec-page-hero__img:hover img {
  transform: scale(1.03);
}

/* Tech badge */
.tec-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(10, 161, 214, .15);
  color: var(--fd-red-light);
  border: 1px solid rgba(10, 161, 214, .3);
  border-radius: 50px;
  padding: .3rem 1rem;
  margin-bottom: 1.2rem;
}


/* ---- STICKY TECH NAV ---- */
.tec-nav {
  background: var(--fd-white);
  border-bottom: 1px solid var(--fd-accent);
  position: sticky;
  top: 65px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.tec-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tec-nav__list::-webkit-scrollbar { display: none; }

.tec-nav__list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .9rem 1.3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fd-gray);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.tec-nav__list li a i { font-size: .9rem; }
.tec-nav__list li a:hover { color: var(--fd-red); }
.tec-nav__list li a.active {
  color: var(--fd-red);
  border-bottom-color: var(--fd-red);
}


/* ---- CONTENT SECTIONS ---- */
.tec-section {
  padding: 5rem 0;
}
.tec-section--alt {
  background: var(--fd-off-white);
}
.tec-section--dark {
  background: var(--fd-dark);
}


/* ---- INTRO LABELS & TITLES ---- */
.tec-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 1rem;
}
.tec-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fd-red);
}

.tec-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fd-black);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.tec-title em {
  color: var(--fd-red);
  font-style: normal;
}

.tec-subtitle {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--fd-gray);
  line-height: 1.85;
}

.tec-highlight-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fd-black);
  margin: 1.5rem 0 .75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--fd-red);
  line-height: 1.3;
}


/* ---- BULLET LIST ---- */
.tec-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.tec-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--fd-gray-dark);
  line-height: 1.6;
}
.tec-bullet-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fd-red);
  margin-top: .45rem;
}


/* ---- FEATURE CARDS ---- */
.tec-card {
  background: var(--fd-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--fd-accent);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tec-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(10, 161, 214, .1);
  border-radius: var(--radius-sm);
  color: var(--fd-red);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(10, 161, 214, .2);
}

.tec-card__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: .4rem;
}

.tec-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fd-black);
  margin-bottom: .8rem;
  line-height: 1.2;
}

.tec-card__text {
  font-size: .92rem;
  font-weight: 300;
  color: var(--fd-gray);
  line-height: 1.75;
}


/* ---- INFO BOX (callout) ---- */
.tec-infobox {
  background: rgba(10, 161, 214, .06);
  border: 1px solid rgba(10, 161, 214, .2);
  border-left: 3px solid var(--fd-red);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.tec-infobox p {
  margin: 0;
  font-size: .96rem;
  color: var(--fd-gray-dark);
  line-height: 1.75;
}


/* ---- SPLIT IMAGE ---- */
.tec-split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tec-split__img img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .6s ease;
}
.tec-split__img:hover img {
  transform: scale(1.03);
}


/* ---- STAT STRIP ---- */
.tec-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--fd-accent);
  border: 1px solid var(--fd-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 3rem;
}
.tec-stat-item {
  flex: 1;
  min-width: 130px;
  background: var(--fd-white);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.tec-stat-item__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fd-red);
  line-height: 1;
}
.tec-stat-item__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fd-gray);
}


/* ---- STEP CARDS (cashback 4 step) ---- */
.tec-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  position: relative;
}

.tec-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--fd-red), rgba(10,161,214,.2));
  z-index: 0;
}

.tec-step {
  position: relative;
  z-index: 1;
  background: var(--fd-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--fd-accent);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .5s ease,
    transform .5s ease,
    box-shadow var(--transition);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.tec-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tec-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(10,161,214,.2);
}

.tec-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fd-red);
  color: var(--fd-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(10,161,214,.4);
}

.tec-step__icon {
  width: 52px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tec-step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fd-black);
  line-height: 1.3;
  margin: 0;
}


/* ---- D2C TABS (HUB page: 3 pillar cards) ---- */
.tec-pillar-card {
  background: var(--fd-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.06);
  padding: 2.2rem 2rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tec-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10,161,214,.3);
  border-color: rgba(10,161,214,.3);
}
.tec-pillar-card__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fd-red-light);
  margin-bottom: .6rem;
}
.tec-pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fd-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.tec-pillar-card__title span {
  color: var(--fd-red);
}
.tec-pillar-card .tec-bullet-list li {
  color: rgba(255,255,255,.65);
}
.tec-pillar-card .tec-bullet-list li::before {
  background: var(--fd-red);
}


/* ---- ZOOM IMAGE GALLERY (chatbot) ---- */
.tec-zoom-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fd-accent);
}
.tec-zoom-wrap img {
  width: 100%;
  display: block;
  transition: transform .35s ease;
}
.tec-zoom-wrap:hover img {
  transform: scale(1.04);
}
.tec-zoom-wrap__icon {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  width: 32px;
  height: 32px;
  background: var(--fd-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.tec-zoom-wrap:hover .tec-zoom-wrap__icon {
  opacity: 1;
}


/* ---- CTA BLOCK ---- */
.tec-cta-block {
  background: var(--fd-red);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.tec-cta-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fd-white);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.tec-cta-block__text {
  font-size: .95rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 300;
  margin: 0;
}
.tec-cta-block .btn-discover {
  flex-shrink: 0;
  background: var(--fd-white);
  color: var(--fd-red) !important;
}
.tec-cta-block .btn-discover:hover {
  background: var(--fd-dark);
  color: var(--fd-white) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.tec-cta-block .btn-discover .arrow-icon {
  background: rgba(10, 161, 214, .15);
}

/* ---- DIVIDER ---- */
.tec-divider {
  height: 1px;
  background: var(--fd-accent);
  margin: 3rem 0;
}

/* ---- MODAL OVERRIDES (chatbot gallery) ---- */
.modal-content {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--fd-accent);
  padding: 1rem 1.5rem;
}
.modal-footer {
  border-top: 1px solid var(--fd-accent);
  padding: 1rem 1.5rem;
}
.modal-footer .btn-secondary {
  background: var(--fd-gray-dark);
  border: none;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .5rem 1.5rem;
}


/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .tec-page-hero { padding: 4rem 0 2.5rem; }
  .tec-section { padding: 3.5rem 0; }
  .tec-steps { grid-template-columns: repeat(2, 1fr); }
  .tec-steps::before { display: none; }
  .tec-cta-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .tec-section { padding: 2.5rem 0; }
  .tec-steps { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tec-card { padding: 1.5rem; }
  .tec-cta-block { padding: 2rem 1.5rem; }
  .tec-page-hero__title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}

@media (max-width: 479px) {
  .tec-steps { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   SIDEBAR NAV VERTICALE — stile #techDock
   ============================================= */
.tec-side-nav {
  position: fixed;
  right: 1.25rem;
  top: 80%;
  transform: translateY(-50%);
  z-index: 900;

  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(10, 161, 214, .5);
  border-radius: 999px;
  padding: .7rem .45rem;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, .10),
    0 1px 0 rgba(255, 255, 255, .9) inset;

  /* Entrata da destra */
  opacity: 0;
  translate: 20px 0;
  transition: opacity .45s ease, translate .45s ease;

  /* Solo da 1200px in su */
  display: none;
}
@media (min-width: 1200px) {
  .tec-side-nav { display: block; }
}
.tec-side-nav.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ---- Lista ---- */
.tec-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .28rem;
}

/* ---- Separatore ---- */
.tec-side-nav__item + .tec-side-nav__item::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(0, 0, 0, .09);
  margin: .08rem auto 0;
}

/* ---- Link base ---- */
.tec-side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  color: var(--fd-gray);
  background: transparent;
  border: 1.5px solid transparent;
  transition:
    background  var(--transition),
    color       var(--transition),
    border-color var(--transition),
    transform   var(--transition),
    box-shadow  var(--transition);
}

/* forza colore anche su visited/focus */
.tec-side-nav__link,
.tec-side-nav__link:visited,
.tec-side-nav__link:hover,
.tec-side-nav__link:focus {
  color: var(--fd-gray);
}

/* ---- Hover ---- */
.tec-side-nav__link:hover {
  background: rgba(10, 161, 214, .09);
  border-color: rgba(10, 161, 214, .22);
  color: var(--fd-red);
  transform: scale(1.14);
}

/* ---- Icona ---- */
.tec-side-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* ---- Tooltip (dock-tip style) ---- */
.tec-side-nav__tip {
  position: absolute;
  right: calc(100% + .7rem);
  top: 50%;
  transform: translateY(-50%) translateX(5px);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fd-dark);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 5px;
  padding: .28rem .65rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .10);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tec-side-nav__link:hover .tec-side-nav__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---- ACTIVE ---- */
.tec-side-nav__link.is-active,
.tec-side-nav__link.active {
  background: var(--fd-red);
  border-color: var(--fd-red);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(10, 161, 214, .38);
  transform: scale(1.1);
}
.tec-side-nav__link.is-active i,
.tec-side-nav__link.active i {
  color: #fff !important;
}
.tec-side-nav__link.is-active:hover,
.tec-side-nav__link.active:hover {
  background: var(--fd-red-dark);
  border-color: var(--fd-red-dark);
  transform: scale(1.08);
}