/* ==========================================================================
   TDCONSULTING - Personalizzazioni del template
   ========================================================================== */

/* Logo ------------------------------------------------------------------- */
.header__main .logo { width: 215px; }
.sidebar-area .logo { width: 230px; }
.footer__item .logo { width: 250px; }
@media (max-width: 575px) {
  .header__main .logo { width: 175px; }
}

/* Menu ------------------------------------------------------------------- */
.header__main .main-menu ul li.active > a,
.header__main .main-menu ul li > a:hover { color: var(--primary-color); }
.header__main .main-menu ul li .sub-menu li.active > a { color: var(--primary-color); }
.header__main .main-menu ul li .sub-menu.mega-menu li .image { flex: 1 1 0; min-width: 0; }
.header__main .main-menu ul li .sub-menu.mega-menu li .image img { width: 100%; height: auto; display: block; }
.header__main .main-menu ul li .sub-menu.mega-menu li .image h6 { font-size: 15px; }
.header__main .main-menu > nav > ul { gap: 30px; }
@media (max-width: 1399px) {
  .header__main .main-menu > nav > ul { gap: 22px; }
}
.header-top .header-top-wrp .info li span { font-size: 14px; }
@media (min-width: 992px) {
  .header__main .main-menu { margin-left: auto; margin-right: 40px; }
}

/* Testi lunghi nello slider */
.banner__content .td-banner-title { font-size: clamp(34px, 4.2vw, 66px); line-height: 1.15; max-width: 900px; }
.banner__content p { max-width: 760px; }

/* Icone Font Awesome nei box del template ---------------------------------- */
.service__icon .td-icon { font-size: 32px; line-height: 70px; color: var(--primary-color); }
.service-two__content .icon .td-icon { font-size: 30px; line-height: 70px; color: var(--white); }
.offer__icon .td-offer-icon { font-size: 30px; line-height: 70px; color: var(--white); }
.about__right-item .icon .td-icon { font-size: 34px; line-height: 80px; color: var(--primary-color); }
a.offer__item { color: inherit; }
.pricing-icon .td-icon { font-size: 34px; color: var(--white); line-height: inherit; }

/* Avatar / immagini ------------------------------------------------------- */
.td-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__item img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; background: #fff; }
.testimonial__item .testi-info { padding-right: 50px; }
.testimonial__item .testi-info h4 { font-size: 20px; line-height: 1.3; }
.td-cert-date { color: var(--primary-color); font-size: 14px; font-weight: 600; }
.td-cert-date i { margin-right: 4px; }
.team__item .image img, .case__image img, .case-two__image img, .blog__image img { width: 100%; object-fit: cover; }

/* Paragrafi introduttivi ----------------------------------------------- */
.td-intro p { color: var(--paragraph); }
.td-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Liste nei contenuti dei servizi ---------------------------------------- */
.td-content h3.title { margin-top: 10px; }
.td-content .td-section { margin-bottom: 40px; }
.td-list { padding-left: 0; }
.td-list > li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--paragraph); }
.td-list > li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--primary-color); font-size: 15px;
}
.td-list ul { margin-top: 8px; padding-left: 4px; }
.td-list ul li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.td-list ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }
.td-steps { counter-reset: step; padding-left: 0; }
.td-steps > li { position: relative; padding: 18px 20px 18px 74px; margin-bottom: 14px; background: var(--sub-bg); color: var(--paragraph); counter-increment: step; }
.td-steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; line-height: 42px; text-align: center; color: #fff; font-weight: 700; background: var(--gradient-bg);
}
.td-steps > li strong, .td-list > li strong { color: var(--heading-color); }
.td-closing { border-left: 4px solid var(--primary-color); padding: 20px 25px; background: var(--sub-bg); font-weight: 500; color: var(--heading-color); }

/* Sidebar contatti nei dettagli servizio */
.service-single__right-item .category li a.td-link,
.service-single__right-item .category li span { color: var(--heading-color); }
.td-side-cta { background: var(--gradient-bg); padding: 40px 30px; color: #fff; }
.td-side-cta h4, .td-side-cta p { color: #fff; }
.td-side-cta .btn-one { background: #fff; color: var(--primary-color); }
.td-side-cta .btn-one:hover { color: #fff; }

/* Moduli ---------------------------------------------------------------- */
.td-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.td-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; margin-bottom: 24px; font-weight: 500; border-left: 4px solid; }
.td-alert i { font-size: 20px; margin-top: 2px; }
.td-alert--success { background: #e9f8ef; border-color: #1f9d55; color: #14532d; }
.td-alert--error { background: #fdecec; border-color: #d93025; color: #7f1d1d; }
.td-alert a { text-decoration: underline; }
.td-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--paragraph); text-transform: none !important; font-weight: 400 !important; }
.td-check input[type="checkbox"], .td-check input[type="radio"] { width: 18px !important; height: 18px !important; min-width: 18px; margin-top: 2px; padding: 0 !important; accent-color: var(--primary-color); }
.td-check--light, .td-check--light a, .talk-us__item form label.td-check span, .talk-us__item form label.td-check a { color: rgba(255, 255, 255, .9) !important; }
.talk-us__item form label.td-check { margin-top: 4px; }
.td-check a { text-decoration: underline; }
.td-form .td-invalid, .td-form .td-invalid + .nice-select { border-color: #d93025 !important; box-shadow: 0 0 0 1px #d93025; }
.td-field-error { display: block; color: #d93025; font-size: 13px; margin-top: 4px; }
.talk-us__item .td-field-error { color: #ffb4ad; }
.contact__form select, .td-form select { width: 100%; }
.contact__form .nice-select { width: 100%; height: 56px; line-height: 54px; border-radius: 0; border: 1px solid var(--border); margin-bottom: 20px; }
.contact__form .nice-select .list { width: 100%; max-height: 260px; overflow-y: auto; }
.contact__form button[type="submit"].btn-one { border: none; }
.contact__form .td-row-gap > [class*="col-"] { margin-bottom: 4px; }

/* Preventivo multi-step ----------------------------------------------- */
.td-steps-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 0; }
.td-steps-nav li { flex: 1 1 140px; padding: 12px 14px; background: var(--sub-bg); font-size: 14px; font-weight: 600; color: var(--paragraph); display: flex; align-items: center; gap: 10px; cursor: default; }
.td-steps-nav li span { width: 30px; height: 30px; min-width: 30px; line-height: 30px; text-align: center; background: #fff; color: var(--primary-color); font-weight: 700; }
.td-steps-nav li.is-active { background: var(--gradient-bg); color: #fff; }
.td-steps-nav li.is-done { color: var(--primary-color); }
.td-steps-nav li.is-done span { background: var(--primary-color); color: #fff; }
.td-step { display: none; }
.td-step.is-active { display: block; animation: tdFade .4s ease; }
@keyframes tdFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.td-step h3 { margin-bottom: 10px; }
.td-step .td-step-intro { margin-bottom: 30px; }
.td-step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin-top: 30px; }
.td-step-actions .btn-one { border: none; }
.td-btn-ghost { background: transparent !important; color: var(--heading-color) !important; border: 1px solid var(--border) !important; }
.td-btn-ghost::before { display: none; }
.td-radio-group { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-bottom: 20px; }
.td-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin-bottom: 20px; }
.td-yesno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.td-yesno p { margin: 0; flex: 1 1 240px; min-width: 0; color: var(--heading-color); font-weight: 500; }
.td-yesno .td-radio-group { margin: 0; }
.td-file { margin-bottom: 14px; }
.td-file input[type="file"] { padding: 12px !important; height: auto !important; background: var(--sub-bg); }
.td-form label.td-label { display: block; font-weight: 600; color: var(--heading-color); margin-bottom: 10px; text-transform: none; }
.td-form .td-hint { font-size: 13px; color: var(--paragraph); margin-top: -12px; margin-bottom: 18px; display: block; }
.td-form .is-hidden { display: none; }

/* Prezzi -> percorsi --------------------------------------------------- */
.pricing__item .pricing-head h2.td-price { font-size: 30px; }

/* Ricerca / risultati -------------------------------------------------- */
.td-result-type { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--primary-color); background: var(--primary10); padding: 4px 10px; margin-bottom: 10px; }
.td-empty { padding: 40px; background: var(--sub-bg); text-align: center; }

/* Mappa con consenso --------------------------------------------------- */
.contact__map { position: relative; }
.td-map-placeholder { min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 40px 20px; background: var(--secondary-color) center/cover no-repeat; color: #fff; position: relative; }
.td-map-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(15, 13, 29, .82); }
.td-map-placeholder > * { position: relative; }
.td-map-placeholder h4, .td-map-placeholder p { color: #fff; }
.td-map-placeholder .btn-one { border: none; }

/* Cookie banner -------------------------------------------------------- */
.td-cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 10000; max-width: 980px; margin: 0 auto; background: var(--secondary-color); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); border-top: 4px solid var(--primary-color); }
.td-cookie[hidden] { display: none; }
.td-cookie__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px 28px; }
.td-cookie__text { flex: 1 1 420px; }
.td-cookie__text h5 { color: #fff; margin-bottom: 6px; }
.td-cookie__text p { color: rgba(255, 255, 255, .8); font-size: 14px; margin: 0; }
.td-cookie__text a { color: #fff; text-decoration: underline; }
.td-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.td-cookie__btn { border: none; cursor: pointer; }
.td-cookie__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); padding: 14px 22px; font-weight: 600; }
.td-cookie__btn--ghost:hover { border-color: #fff; }

/* Popup PDF ------------------------------------------------------------ */
.mfp-pdf .mfp-iframe-scaler { padding-top: 0; height: 85vh; }
.mfp-pdf .mfp-content { max-width: 1100px; }

/* Brochure / pagine testuali -------------------------------------------- */
.td-pdf-frame { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--border); }
.td-text h3 { margin: 35px 0 15px; }
.td-text h4 { margin: 25px 0 12px; }
.td-text p { margin-bottom: 15px; }
.td-text .td-privacy-table { min-width: 640px; }
.td-text .td-privacy-table th { background: var(--sub-bg); }
.td-privacy h5 { margin: 20px 0 12px; }
.td-text ul { margin-bottom: 15px; }
.td-sitemap ul { padding-left: 0; }
.td-sitemap > ul > li { margin-bottom: 25px; }
.td-sitemap ul ul { margin-top: 10px; padding-left: 22px; border-left: 2px solid var(--border); }
.td-sitemap ul ul li { margin-bottom: 6px; }
.td-sitemap a { color: var(--heading-color); font-weight: 500; }
.td-sitemap a:hover { color: var(--primary-color); }

/* Attestati ------------------------------------------------------------ */
.case-two__item .case-two__image img { height: 420px; object-position: top; }

/* Dettaglio team: barre competenze ------------------------------------- */
.team-single .experience-title-wrapper span { color: var(--primary-color); font-weight: 600; }

/* Articolo ------------------------------------------------------------- */
.blog-single__left-item .blog__content ul li svg, .blog-single__left-item .blog__content ul li i { margin-right: 6px; }

/* Error page ----------------------------------------------------------- */
.error__item .image img { max-width: 100%; }

/* Accessibilità ---------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Contatti ------------------------------------------------------------- */
.td-contact-icon { color: var(--primary-color); font-size: 24px; position: relative; z-index: 1; }
.contact__left-item h3 a.td-break { font-size: 22px; word-break: break-all; }
.contact__left-item h3 small { font-size: 16px; font-weight: 500; }
.contact__form .td-radio-group .td-check span { color: var(--heading-color); }

/* Card settori: titoli lunghi */
.case__content { width: auto; right: 30px; }
.case__content h3 { font-size: 22px; line-height: 1.3; padding-right: 50px; }
.case__item:hover .case__content h3 { padding-right: 60px; }

/* Header: area colorata del logo */
@media (min-width: 1200px) {
  .header-area::after { width: min(30%, 330px); }
}
@media (min-width: 1500px) {
  .header-area::after { width: calc((100% - 1350px) / 2 + 290px); }
}

/* Ricerca nella pagina 404 */
.td-404-search { display: flex; max-width: 520px; margin-left: auto; margin-right: auto; border: 1px solid var(--border); }
.td-404-search input { flex: 1; border: 0; padding: 14px 18px; outline: none; }
.td-404-search button { width: 56px; border: 0; background: var(--primary-color); color: #fff; }

/* Footer dopo il box "quote" (come footer-two della demo) */
.td-footer-quote { padding-top: 120px; }
.quote-area { position: relative; z-index: 2; }

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 575px) {
  .testimonial__item img { width: 70px; height: 70px; }
  .testimonial__item .testi-info { padding-right: 34px; }
  .testimonial__item .testi-info h4 { font-size: 18px; }
  .td-steps > li { padding-left: 64px; }
  .banner__content p br { display: none; }
  .contact__form.p-4 { padding: 20px !important; }
  .td-cookie { left: 10px; right: 10px; bottom: 10px; }
  .td-cookie__inner { padding: 18px; }
}
.banner-area .slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 29, .55) 0%, rgba(15, 13, 29, .15) 70%); }
.td-credits { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }

/* ==========================================================================
   Box della stessa altezza in tutto il sito
   (le colonne Bootstrap sono già alte uguali: la card ne occupa tutta l'altezza
   e il link "Scopri di più / Leggi tutto" / il pulsante restano allineati in basso)
   ========================================================================== */
.row > [class*="col"] > .service__item,
.row > [class*="col"] > .service-two__item,
.row > [class*="col"] > .blog__item,
.row > [class*="col"] > .pricing__item,
.row > [class*="col"] > .offer__item,
.row > [class*="col"] > .about__right-item,
.row > [class*="col"] > .case-two__item { height: 100%; }

/* Servizi / certificazioni */
.service__item { display: flex; flex-direction: column; }
.service__item > .service__icon { flex-shrink: 0; }
.service__item > h4 { line-height: 1.4; min-height: 2.8em; display: flex; align-items: flex-start; }
.service__item > p { margin-bottom: 0; }

/* Elenco servizi (con immagine) */
.service-two__item { display: flex; flex-direction: column; }
.service-two__item .image img { width: 100%; aspect-ratio: 370 / 250; object-fit: cover; display: block; }
.service-two__content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; }
.service-two__content h4 { line-height: 1.4; min-height: 2.8em; }
.service-two__content .read-more-btn { margin-top: auto; }

/* Approfondimenti */
.blog__item { display: flex; flex-direction: column; }
.blog__item .blog__image img { aspect-ratio: 370 / 254; }
.blog__item .blog__content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; }
.blog__item .blog__content .blog-info { align-self: stretch; }
.blog__item .blog__content .read-more-btn { margin-top: auto; padding-top: 25px; }
.blog-single__left-item.blog__item { display: block; }

/* Percorsi / prezzi */
.pricing__item { display: flex; flex-direction: column; }
.pricing__item > ul { flex: 1 1 auto; }
.pricing__item > .btn-one { margin-top: auto; }

/* Box "offerta" (fondo scuro) */
.offer__item { display: flex !important; flex-direction: column; align-items: center; }
.offer__item h4 { flex: 1 1 auto; display: flex; align-items: center; }

/* Attestati nello slider: slide della stessa altezza */
.testimonial__slider .swiper-slide { height: auto; }
.testimonial__slider .testimonial__item { height: 100%; }

/* Numeri chiave: tutti su una riga (desktop), etichette al massimo su due righe */
.counter__wrp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: 70px 60px; }
.counter__item { gap: 16px; }
.counter__item img { width: 70px; flex-shrink: 0; }
.counter__item .content { min-width: 0; }
.counter__item p { line-height: 1.4; margin: 0; min-height: 2.8em; }
@media (max-width: 1199px) {
  .counter__wrp { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 60px 40px; }
}
@media (max-width: 575px) {
  .counter__wrp { grid-template-columns: 1fr; padding: 50px 30px; }
}

/* Preloader: logo bianco con pulsazione */
.loading { top: calc(50% - 75px); }
.loading.isdone { top: calc(50% - 35px); }
.loading__logo { display: block; width: min(360px, 70vw); height: auto; margin: 0 auto; animation: td-logo-pulse 1.4s ease-in-out infinite alternate; }
@keyframes td-logo-pulse { from { opacity: 1; transform: scale(1); } to { opacity: .45; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .loading__logo { animation: none; } }

/* ==========================================================================
   Landing FlowPro
   ========================================================================== */
.td-fp-intro { position: relative; overflow: hidden; }

/* Anteprima dashboard */
.td-fp-mock { background: var(--white); box-shadow: 30px 30px 0 rgba(60, 114, 252, .12), 0 30px 70px rgba(15, 13, 29, .14); border: 1px solid var(--border); margin-right: 30px; }
.td-fp-mock__bar { display: flex; align-items: center; gap: 7px; padding: 14px 20px; background: var(--secondary-color); }
.td-fp-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.td-fp-mock__bar span:first-child { background: var(--primary-color); }
.td-fp-mock__bar strong { margin-left: 10px; color: #fff; font-size: 14px; font-weight: 600; }
.td-fp-mock__body { padding: 26px; display: grid; gap: 18px; }
.td-fp-mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.td-fp-kpi { background: var(--sub-bg); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.td-fp-kpi i { font-size: 22px; color: var(--primary-color); margin-bottom: 6px; }
.td-fp-kpi b { font-size: 26px; line-height: 1; color: var(--heading-color); }
.td-fp-kpi small { font-size: 13px; line-height: 1.35; color: var(--paragraph); }
.td-fp-mock__panel { border: 1px solid var(--border); padding: 20px; }
.td-fp-mock__panel h6 { margin-bottom: 12px; }
.td-fp-progress { height: 8px; background: var(--primary10); margin-bottom: 16px; }
.td-fp-progress span { display: block; height: 100%; background: var(--gradient-bg); }
.td-fp-mock__panel ul { padding: 0; margin: 0; display: grid; gap: 8px; }
.td-fp-mock__panel li { font-size: 14px; color: var(--paragraph); display: flex; align-items: center; gap: 10px; }
.td-fp-mock__panel li i { color: var(--border); }
.td-fp-mock__panel li.is-done i { color: var(--primary-color); }
.td-fp-mock__panel li em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 2px 8px; }
.td-fp-mock__alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--gradient-bg); font-size: 14px; font-weight: 500; }
.td-fp-mock__alert, .td-fp-mock__alert span, .td-fp-mock__alert i { color: #fff; }
.td-fp-mock__alert i { animation: tdFpRing 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes tdFpRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

/* Badge flottanti sulla dashboard */
.td-fp-mock-wrap { position: relative; padding: 30px 0 30px 0; }
.td-fp-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--white); box-shadow: 0 18px 45px rgba(15, 13, 29, .16); }
.td-fp-badge i { width: 44px; height: 44px; line-height: 44px; text-align: center; font-size: 20px; color: #fff; background: var(--gradient-bg); border-radius: 50%; }
.td-fp-badge span { display: flex; flex-direction: column; line-height: 1.25; }
.td-fp-badge b { color: var(--heading-color); font-size: 15px; }
.td-fp-badge small { color: var(--paragraph); font-size: 12px; }
.td-fp-badge--top { top: 42%; left: -50px; }
.td-fp-badge--bottom { bottom: -10px; right: 0; }
.td-fp-badge--bottom i { background: #16a34a; }

/* Prima / dopo */
.td-fp-compare { height: 100%; padding: 40px 35px; background: var(--white); box-shadow: var(--shadow); }
.td-fp-compare h4 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.td-fp-compare h4 i { font-size: 28px; color: var(--paragraph); }
.td-fp-compare ul { padding: 0; margin: 0; display: grid; gap: 14px; }
.td-fp-compare li { display: flex; gap: 12px; align-items: flex-start; color: var(--paragraph); }
.td-fp-compare li i { margin-top: 5px; font-size: 14px; color: #b91c1c; }
.td-fp-compare--after { background: var(--gradient-bg); }
.td-fp-compare--after h4, .td-fp-compare--after h4 i, .td-fp-compare--after li, .td-fp-compare--after li i { color: #fff; }

/* Come funziona */
.td-fp-steps { position: relative; }
.td-fp-step { position: relative; height: 100%; text-align: center; padding: 40px 30px 36px; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.td-fp-step:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(15, 13, 29, .12); }
.td-fp-step__num { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(60, 114, 252, .35); }
.td-fp-step__icon { position: relative; z-index: 1; width: 64px; height: 64px; line-height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--gradient-bg); box-shadow: 0 0 0 10px var(--primary10); }
.td-fp-step__icon i { font-size: 26px; color: #fff; line-height: inherit; }
.td-fp-step h4 { margin-bottom: 10px; }
.td-fp-step p { margin: 0; }

/* Funzionalità: titolo su una riga */
.service__item.td-fp-feature > h4 { min-height: 0; }

@media (max-width: 1199px) { .td-fp-badge--top { left: -10px; } }

/* Ruoli */
.td-fp-roles-text { max-width: 420px; color: rgba(255, 255, 255, .8); margin: 0; }
.offer-area .offer__item { cursor: default; }

/* Benefici */
.td-fp-benefit { height: 100%; padding: 32px 28px; background: var(--sub-bg); border-bottom: 3px solid transparent; transition: var(--transition); }
.td-fp-benefit:hover { background: var(--white); box-shadow: var(--shadow); border-color: var(--primary-color); }
.td-fp-benefit .icon { width: 64px; height: 64px; line-height: 64px; text-align: center; background: var(--primary10); margin-bottom: 20px; }
.td-fp-benefit .icon i { font-size: 28px; color: var(--primary-color); line-height: inherit; }
.td-fp-benefit h4 { margin-bottom: 8px; }
.td-fp-benefit p { margin: 0; }

/* Standard supportati */
.td-fp-standards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.td-fp-standard { position: relative; overflow: hidden; background: var(--secondary-color); padding: 26px 12px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.td-fp-standard::before { content: ""; position: absolute; inset: 0; background: var(--gradient-bg); opacity: 0; transition: var(--transition); }
.td-fp-standard:hover::before { opacity: 1; }
.td-fp-standard:hover { transform: translateY(-6px); }
.td-fp-standard img { position: relative; width: 100%; max-width: 230px; height: auto; }
@media (max-width: 991px) { .td-fp-standards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .td-fp-standards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .td-fp-standard { padding: 22px 14px; } }

/* CTA finale */
.td-fp-cta { padding-top: 40px; }
.td-fp-btn-white { background: #fff; color: var(--primary-color); }
.td-fp-btn-white:hover { color: #fff; }
.td-fp-btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.td-fp-btn-outline:hover { color: #fff; }

@media (max-width: 575px) {
  .td-fp-mock__body { padding: 18px; }
  .td-fp-mock__kpis { gap: 8px; }
  .td-fp-kpi { padding: 12px 10px; }
  .td-fp-kpi b { font-size: 20px; }
  .td-fp-kpi small { font-size: 11px; }
  .td-fp-badge--top { top: 0; left: 0; }
  .td-fp-mock { margin-right: 0; box-shadow: 0 20px 50px rgba(15, 13, 29, .14); }
  .td-fp-badge { padding: 10px 12px; }
  .td-fp-badge i { width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
  .td-fp-compare { padding: 30px 22px; }
  .td-fp-standard { flex-basis: 140px; padding: 16px; }
}

/* Inventario cookie in stile "cookie inseriti": schede native accessibili anche senza JavaScript. */
:root { --kumbh: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.td-cookie { max-height: calc(100dvh - 40px); overflow-y: auto; }
.td-cookie-customize { flex: 1 1 100%; min-width: 0; }
.td-cookie-customize > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.td-cookie-services { margin: 20px 0 16px; }
.td-cookie-service { margin-bottom: 10px; background: #f5f6f8; color: #333; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.td-cookie-service summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.td-cookie-service summary::-webkit-details-marker { display: none; }
.td-cookie-service summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: 0 0 9px; margin: -5px 3px 0 4px; transition: transform .2s; }
.td-cookie-service[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.td-cookie-service__head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-cookie-service__head strong { font-size: 16px; color: #1c1c1c; }
.td-cookie-service__cats { font-size: 13px; color: #626975; }
.td-cookie-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.td-cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.td-cookie-switch__track { position: relative; width: 40px; height: 22px; border-radius: 22px; background: #c4c8cf; transition: background .2s; }
.td-cookie-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.td-cookie-switch input:checked + .td-cookie-switch__track { background: #245ac3; }
.td-cookie-switch input:checked + .td-cookie-switch__track::after { transform: translateX(18px); }
.td-cookie-switch input:disabled + .td-cookie-switch__track { opacity: .55; cursor: not-allowed; }
.td-cookie-switch input:focus-visible + .td-cookie-switch__track { outline: 3px solid #6b9bff; outline-offset: 2px; }
.td-cookie-switch__label { font-size: 12px; color: #626975; white-space: nowrap; }
.td-cookie-service__body { padding: 18px; background: #fff; border-top: 1px solid #e5e7eb; font-size: 14px; }
.td-cookie-service__body h6 { font-size: 15px; margin: 0 0 6px; color: #1c1c1c; }
.td-cookie-service__body p { color: #444; margin-bottom: 14px; font-size: 14px; }
.td-cookie-service__body a { color: #245ac3; text-decoration: underline; }
.td-cookie-purpose { margin-top: 6px; }
.td-cookie-purpose > h6 { background: #f5f6f8; padding: 8px 12px; margin: 0 0 8px; border-radius: 4px; }
.td-cookie-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin: 0 0 8px; padding: 0 12px 8px; border-bottom: 1px solid #eef0f3; }
.td-cookie-row:last-child { border-bottom: 0; }
.td-cookie-row dt { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #626975; }
.td-cookie-row dd { margin: 0; overflow-wrap: anywhere; color: #333; }
.td-cookie-save { background: #245ac3; color: #fff; padding: 12px 20px; font-weight: 600; margin-bottom: 8px; }
.td-cookie-status { font-size: 14px; margin: 0; }
.td-cookie summary:focus-visible, .td-cookie-service summary:focus-visible, .td-cookie__btn:focus-visible { outline: 3px solid #6b9bff; outline-offset: 3px; }
.td-cookie-policy h5 { margin: 20px 0 10px; }
@media (max-width: 575px) {
  .td-cookie-service summary { gap: 10px; padding: 12px; }
  .td-cookie-row { grid-template-columns: 1fr 1fr; }
  .td-cookie-row > div:last-child { grid-column: 1 / -1; }
  .td-cookie { max-height: calc(100dvh - 20px); }
}
.banner__inner-page h1 { color: var(--white); font-size: 40px; line-height: 48px; margin-bottom: 10px; }
@media (max-width: 767px) { .banner__inner-page h1 { font-size: 30px; line-height: 40px; } }
