﻿/* ============================================================
   PALETTE B — Navy Black + Electric Cyan
   File: palette-b.css
   Versione: 1.0.0

   ISTRUZIONI:
   Includere DOPO main.css e DOPO critical.css.
   In enqueue.php aggiungere:
     wp_enqueue_style('my-dev-palette-b',
       MY_DEV_URL . '/assets/css/palette-b.css',
       ['my-dev-main'], MY_DEV_VERSION);

   Questo file NON riscrive main.css.
   Agisce esclusivamente su:
     01. Ridefinizione CSS custom properties in :root
     02. Header / navbar
     03. Bottoni globali
     04. Section --services
     05. Method section
     06. Process section
     07. Case study
     08. Why-me
     09. Footer
     10. Trust bar (nuovo componente)
     11. Back to top (nuovo componente)
     12. Divi override
     13. Responsive overrides
   ============================================================ */

:root {

  /* Colori principali */
  --color-primary:        #00E6C8;   /* era #2563eb — ora cyan */
  --color-primary-dark:   #00BFA5;   /* era #1d4ed8 */
  --color-primary-light:  #33EDD4;   /* era #3b82f6 */

  /* Backgrounds */
  --color-navy:           #0A0E1A;   /* era #0f172a — ora near-black */
  --color-navy-mid:       #0F1628;   /* era #1e3a5f — ora dark mid */
  --color-bg:             #f8faff;   /* era #f8faff — ora dark */
  --color-bg-dark:        #0F1628;   /* era #f8faff — ora dark */
  --color-bg-card:        #161D35;   /* era #ffffff — ora card dark */
  --color-bg-section:     #0A0E1A;   /* era #eff4ff — ora near-black */

  /* Testi */
  --color-text:           #F0F4FF;   /* era #1e293b — ora chiaro su dark */
  --color-text-muted:     rgba(240,244,255,0.55); /* era #64748b */
  --color-text-light:     rgba(240,244,255,0.35); /* era #94a3b8 */

  /* Bordi */
  --color-border:         rgba(0,230,200,0.12);  /* era #e2e8f0 */

  /* Accent (alias di primary per i componenti che usano --color-accent) */
  --color-accent:         #00E6C8;   /* era #0ea5e9 */

  /* Shadows — ricalibrate per sfondo scuro */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.30), 0 0 0 1px rgba(0,230,200,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.40), 0 0 0 1px rgba(0,230,200,0.10);
  --shadow-lg:  0 8px 36px rgba(0,0,0,0.50), 0 0 0 1px rgba(0,230,200,0.14);
}


.site-header {
  background: #060910; /* era #0b1f33 in critical.css e main.css */
  border-bottom: 1px solid rgba(0,230,200,0.08);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.55),
              0 1px 0 rgba(0,230,200,0.10);
}

/* Nome nel brand */
.brand__name {
  color: #F0F4FF; /* era #fff — invariato ma esplicito */
}

/* Link navigazione */
.primary-nav a {
  color: rgba(240,244,255,0.55); /* era #f5f5f5 */
  transition: color var(--transition-fast);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  color: #00E6C8; /* era #dbeafe */
}

/* Dropdown sotto-menu (menu-item-has-children) */
.primary-nav .sub-menu {
  background: #0F1628;
  border: 1px solid rgba(0,230,200,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.primary-nav .sub-menu a {
  color: rgba(240,244,255,0.65);
}

.primary-nav .sub-menu a:hover {
  color: #00E6C8;
  background: rgba(0,230,200,0.06);
}

/* Menu mobile aperto */
@media (max-width: 980px) {
  .primary-nav.is-open {
    background: #0A0E1A;
    border-top: 1px solid rgba(0,230,200,0.10);
  }

  .primary-nav a {
    color: rgba(240,244,255,0.70);
  }

  .primary-nav .sub-menu a,
  .primary-nav .sub-menu li a,
  .primary-nav__list .sub-menu a,
  .primary-nav__list .sub-menu li a {
    color: #ffffff !important;
    background: transparent !important;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav__list .sub-menu li a:hover {
    color: #00E6C8 !important;
  }
}

/* Hamburger lines */
.menu-toggle span {
  background: #F0F4FF;
}


.btn {
  background: var(--color-primary);
  color: #0A0E1A;               /* testo scuro su cyan */
  box-shadow: 0 6px 20px rgba(0,230,200,0.22);
  border-color: transparent;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #0A0E1A;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #F0F4FF;
  border: 1.5px solid rgba(0,230,200,0.35);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: #00E6C8;
  background: rgba(0,230,200,0.07);
  color: #00E6C8;
}


.section--services {
  background: #ffffff;
}

.section--services .section-title,
.section--services h2 {
  color: #1e293b;
}

.section--services .section-subtitle,
.section--services .section-description,
.section--services .section-heading p {
  color: #64748b;
}

/* Card servizi */
.service-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: rgba(0,230,200,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Titolo h3 dentro la card */
.service-card h3,
.service-card__title {
  color: #F0F4FF;
}

/* Testo e lista dentro la card */
.service-card p,
.service-card__text,
.service-card li {
  color: rgba(240,244,255,0.55);
}

/* Icona */
.service-card__icon,
.service-card__icon svg {
  color: #00E6C8;
  stroke: #00E6C8;
}

/* Bottone "Scopri di più" dentro card */
.service-card .btn {
  background: #00E6C8;
  color: #0A0E1A;
  box-shadow: 0 4px 14px rgba(0,230,200,0.20);
}

.service-card .btn:hover {
  background: #00BFA5;
}

/* Accordion mobile: header card */
.service-card__header {
  background: #161D35;
  border-bottom: 1px solid rgba(0,230,200,0.08);
}

.service-card__header h3 {
  color: #F0F4FF;
}

.service-card__header::after {
  color: #00E6C8;
}

.service-card__toggle:checked ~ .service-card__header {
  background: rgba(0,230,200,0.05);
}

.service-card__body {
  background: #161D35;
}


.method {
  /* Sostituisce il linear-gradient blu con sfondo cyan pieno */
  color: #0A0E1A;
}

/* Rimuove il pattern a puntini bianchi (era per sfondo scuro) */
.method::before {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(10,14,26,0.07) 1px,
    transparent 0
  );
}

.method .section-title,
.method h2 {
  color: #0A0E1A;
  font-style: italic;
}

.method-intro,
.method p {
  color: rgba(10,14,26,0.72);
}

.method strong {
  color: #0A0E1A;
}

.process-section {
  background: #ffffff;
}

.process-section .section-title,
.process-section h2 {
  color: #1e293b;
}

.process-section .section-subtitle,
.process-section .section-description {
  color: #64748b;
}

.process-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  border-color: rgba(0,230,200,0.25);
  box-shadow: var(--shadow-md);
}

.process-card h3 {
  color: #F0F4FF;
}

.process-card__copy {
  color: rgba(240,244,255,0.55);
}

/* Barra sinistra citazione */
.process-card__copy p {
  border-left-color: #00E6C8;
  color: rgba(240,244,255,0.60);
}

.process-card img {
  border: 1px solid rgba(0,230,200,0.12);
}

.process-card .btn {
  background: #00E6C8;
  color: #0A0E1A;
}

.case-study-intro__title {
  color: #00E6C8;
}

.case-study-intro__subtitle {
  color: #64748b;
}

/* Intro div sopra il caso studio */
.case-study-intro {
  background: #0F1628;
}

/* Sezione case study */
.case-study {
  background: #ffffff;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Card wrapper */
.case-study-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  max-width: 960px;
}

.case-study-card__media {
  background: #0F1628;
}

.case-study-card__metric {
  background: rgba(6,9,16,0.90);
  border: 1px solid rgba(0,230,200,0.15);
}

.case-study-card__metric strong {
  color: #00E6C8;  /* era #fff */
}

.case-study-card__metric span {
  color: rgba(240,244,255,0.70);
}

.case-study-card__label {
  background: rgba(0,230,200,0.10);
  color: #00E6C8;
  border: 1px solid rgba(0,230,200,0.20);
}

.case-study-card__sector {
  color: rgba(240,244,255,0.50);
}

.case-study-card__title {
  color: #F0F4FF;
}

.cs-numbers {
  background: rgba(0,230,200,0.05);
  border: 1px solid rgba(0,230,200,0.12);
}

.cs-number-item:not(:last-child) {
  border-right-color: rgba(0,230,200,0.12);
}

.cs-number-item__value {
  color: #00E6C8;  /* era --color-primary */
}

.cs-number-item__label {
  color: rgba(240,244,255,0.50);
}

.case-study-block {
  border-left: 4px solid rgba(0,230,200,0.25);
  background: linear-gradient(
    90deg,
    rgba(0,230,200,0.05),
    rgba(22,29,53,0)
  );
}

.case-study-block--result {
  border-left-color: #00E6C8;
}

.case-study-block h4 {
  color: #F0F4FF;
}

.case-study-block p {
  color: rgba(240,244,255,0.60);
}

/* Tech tag nel caso studio */
.comp-item__tech-tag {
  --tag-fg: rgba(240,244,255,0.75);
  --tag-bg: rgba(0,230,200,0.07);
  --tag-border: rgba(0,230,200,0.15);
}

.why-me {
  background: #0F1628;
  padding-bottom: 0;
}

.why-me .section-title {
  color: #00E6C8;
}

.why-me .section-title::after {
  background: #0F1628;
}

.why-me__copy-band {
  background: #ffffff;
  padding-block: 2.5rem;
}

.why-me__copy {
  color: #1e293b;
}

.why-me__copy p {
  color: #475569;
}

.why-me__copy strong {
  color: #1e293b;
}

.why-me__grid-band {
  background: #f1f5f9;
  padding-block: 1.75rem 5rem;
}

.why-me__grid {
  margin-top: 0;
}

.why-block,
.why-me__card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
}

.why-block:hover,
.why-me__card:hover {
  border-color: rgba(0,230,200,0.25);
}

.why-title {
  color: #00E6C8;
}

.why-block h3,
.why-block h4,
.why-me__card h3 {
  color: #00E6C8;  /* era --color-primary */
}

.why-block h3::before {
  color: #00E6C8;
}

/* Testo card valore */
.why-block p,
.why-me__card p {
  color: rgba(240,244,255,0.55);
}


.site-footer {
  background: #060910;
  border-top: 1px solid rgba(0,230,200,0.08);
  color: rgba(240,244,255,0.55);
}

.site-footer a {
  color: rgba(240,244,255,0.55);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: #00E6C8;
}

.footer-contact-cta,
.footer-cta-box {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.12);
}

.footer-contact-cta h2,
.footer-contact-cta h3,
.footer-cta-box h2,
.footer-cta-box h3 {
  color: #F0F4FF;
}

.footer-contact-cta p,
.footer-cta-box p {
  color: rgba(240,244,255,0.55);
}

.footer-contact-cta .btn,
.footer-cta-box .btn {
  background: #00E6C8;
  color: #0A0E1A;
  box-shadow: 0 6px 20px rgba(0,230,200,0.22);
}

.footer-contact-cta .btn:hover,
.footer-cta-box .btn:hover {
  background: #00BFA5;
}

.footer-brand__name,
.site-footer .footer-name {
  color: #F0F4FF;
}

.footer-brand__tagline,
.site-footer .footer-tagline {
  color: rgba(240,244,255,0.40);
  font-size: 0.875rem;
}

.footer-bottom,
.site-footer .footer-legal {
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(240,244,255,0.30);
  font-size: 0.8rem;
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.site-footer hr {
  border-color: rgba(255,255,255,0.06);
}

/* Navigazione secondaria nel footer */
.footer-nav a,
.footer-links a {
  color: rgba(240,244,255,0.45);
  font-size: 0.875rem;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: #00E6C8;
}

.trust-bar {
  background: #0D1524;
  border-top:    1px solid rgba(0,230,200,0.08);
  border-bottom: 1px solid rgba(0,230,200,0.08);
  padding: 11px clamp(1rem,4vw,2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trust-bar::-webkit-scrollbar {
  display: none;
}

.trust-bar__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(240,244,255,0.28);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-bar__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.trust-bar__item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(240,244,255,0.42);
  white-space: nowrap;
  padding: 0 14px;
  position: relative;
  transition: color var(--transition-fast);
  cursor: default;
}

.trust-bar__item + .trust-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0,230,200,0.25);
}

.trust-bar__item:hover {
  color: #00E6C8;
}

@media (max-width: 767px) {
  .trust-bar {
    padding: 9px 1rem;
    gap: 12px;
  }

  .trust-bar__label {
    display: none;
  }

  .trust-bar__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }

  .trust-bar__item {
    font-size: 0.75rem;
    padding: 2px 10px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00E6C8;
  color: #0A0E1A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  /* nascosto di default */
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  pointer-events: none;
  transition:
    opacity      0.28s ease,
    transform    0.28s cubic-bezier(0.16,1,0.3,1),
    background   var(--transition-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #00BFA5;
  transform: translateY(-2px) scale(1.06);
}

.back-to-top:active {
  transform: scale(0.96);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(0,230,200,0.50);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}


.et_pb_section,
#et-main-area {
  background: var(--color-bg);
}

/* --- Sezione Divi default --- */
.et_pb_section {
  background-color: #0F1628;
}

.et_pb_section--dark,
.et_pb_section.et_section_specialty {
  background-color: #0A0E1A;
}

/* --- Testi Divi --- */
.et_pb_text_inner,
.et_pb_module p,
.et_pb_module li,
.et_pb_blurb_description {
  color: rgba(240,244,255,0.65);
  font-family: var(--font-body);
}

.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3,
.et_pb_module h4 {
  color: #F0F4FF;
  font-family: var(--font-display);
}

/* --- Bottoni Divi --- */
.et_pb_button,
.et_pb_promo_button {
  background: #00E6C8 !important;
  color: #0A0E1A !important;
  border-color: #00E6C8 !important;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0,230,200,0.20);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.et_pb_button:hover,
.et_pb_promo_button:hover {
  background: #00BFA5 !important;
  border-color: #00BFA5 !important;
  color: #0A0E1A !important;
  transform: translateY(-1px);
}

.et_pb_button.et_pb_button_outlined,
.et_pb_button--outline {
  background: transparent !important;
  color: #F0F4FF !important;
  border: 1.5px solid rgba(0,230,200,0.35) !important;
  box-shadow: none;
}

.et_pb_button.et_pb_button_outlined:hover {
  border-color: #00E6C8 !important;
  color: #00E6C8 !important;
  background: rgba(0,230,200,0.07) !important;
}

.et_pb_blurb,
.et_pb_pricing_table {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  border-radius: var(--border-radius-lg);
  color: rgba(240,244,255,0.65);
}

.et_pb_blurb:hover {
  border-color: rgba(0,230,200,0.25);
  box-shadow: var(--shadow-md);
}

.et_pb_blurb_content .et_pb_module_header,
.et_pb_blurb h4 {
  color: #F0F4FF;
}

.et_pb_blurb_content .et-pb-icon,
.et_pb_blurb .et_pb_main_blurb_image {
  color: #00E6C8;
  fill: #00E6C8;
}

.et_pb_divider hr,
.et_pb_divider_internal {
  border-color: rgba(0,230,200,0.12);
}

.et_pb_toggle {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
}

.et_pb_toggle_title {
  color: #F0F4FF;
}

.et_pb_toggle_open .et_pb_toggle_title,
.et_pb_toggle_title:hover {
  color: #00E6C8;
}

/* --- Tab Divi --- */
.et_pb_tabs_controls li {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
}

.et_pb_tabs_controls li.et_pb_tab_active {
  background: #00E6C8;
}

.et_pb_tabs_controls li.et_pb_tab_active a {
  color: #0A0E1A;
}

.et_pb_tabs_controls a {
  color: rgba(240,244,255,0.60);
}

/* --- Input form Divi --- */
.et_pb_contact_field input,
.et_pb_contact_field textarea,
.et_pb_newsletter_field input {
  background: #161D35 !important;
  border: 1px solid rgba(0,230,200,0.15) !important;
  border-radius: var(--border-radius) !important;
  color: #F0F4FF !important;
}

.et_pb_contact_field input:focus,
.et_pb_contact_field textarea:focus {
  border-color: #00E6C8 !important;
  box-shadow: 0 0 0 3px rgba(0,230,200,0.18) !important;
  outline: none;
}

.et_pb_contact_field input::placeholder,
.et_pb_contact_field textarea::placeholder {
  color: rgba(240,244,255,0.30);
}

.et_pb_contact_submit,
.et_contact_bottom_container .et_pb_button {
  background: #00E6C8 !important;
  color: #0A0E1A !important;
  border-color: #00E6C8 !important;
}

.et_pb_slider .et_pb_slide {
  background: #0F1628;
}

.et_pb_slide_description .et_pb_slide_title {
  color: #F0F4FF;
}

.et_pb_slide_description .et_pb_slide_content {
  color: rgba(240,244,255,0.65);
}

.et-pb-active-slide,
.et_pb_controls .et-pb-active-slide a {
  background: #00E6C8;
  border-color: #00E6C8;
}

/* --- Pricing Divi --- */
.et_pb_pricing_table_wrap .et_pb_featured_table {
  border-color: #00E6C8;
}

.et_pb_pricing_heading,
.et_pb_best_value {
  background: #00E6C8;
  color: #0A0E1A;
}

.et_pb_pricing .et_pb_sum {
  color: #00E6C8;
}

#main-header,
#main-header .et_header_style_centered {
  background: #060910;
  border-bottom: 1px solid rgba(0,230,200,0.08);
}

#top-menu .menu-item a,
#top-menu a {
  color: rgba(240,244,255,0.55) !important;
}

#top-menu .menu-item a:hover,
#top-menu a:hover {
  color: #00E6C8 !important;
}

.insight-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.insight-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.4;
}

/* Palette ciclica: i tag prendono colore in base alla posizione */
.insight-card__tag:nth-child(6n+1) { background: rgba(0,230,200,.12);  color: #00E6C8; border-color: rgba(0,230,200,.25); }
.insight-card__tag:nth-child(6n+2) { background: rgba(99,102,241,.15);  color: #a5b4fc; border-color: rgba(99,102,241,.30); }
.insight-card__tag:nth-child(6n+3) { background: rgba(251,191, 36,.12); color: #fcd34d; border-color: rgba(251,191,36,.25); }
.insight-card__tag:nth-child(6n+4) { background: rgba(52,211,153,.12);  color: #6ee7b7; border-color: rgba(52,211,153,.25); }
.insight-card__tag:nth-child(6n+5) { background: rgba(251,113, 72,.12); color: #fca5a5; border-color: rgba(251,113,72,.25); }
.insight-card__tag:nth-child(6n+6) { background: rgba(167,139,250,.12); color: #c4b5fd; border-color: rgba(167,139,250,.25); }

.insight-areas > .container > .section-title,
.insight-areas > .container > h2 {
  color: #0F1628;
}

.insight-areas > .container > .section-description {
  color: #475569;
}

.page-faq .faq-intro p {
  color: #475569;
}

.page-faq .faq-item__question {
  color: #0F1628;
}

.page-faq .faq-item__question:hover {
  color: var(--color-primary);
}

.page-faq .faq-item__answer p {
  color: #475569;
}

.page-faq .faq-group__title {
  border-bottom-color: rgba(0,230,200,0.30);
}

.page-faq .faq-item {
  border-bottom-color: #e2e8f0;
}

.page-faq .faq-item:first-of-type {
  border-top-color: #e2e8f0;
}

.page-faq .faq-cta {
  border-top-color: #e2e8f0;
}

.page-faq .faq-cta p {
  color: #475569;
}

@media (max-width: 980px) {
  /* Sezioni mobile */
  .section--services {
    background: #ffffff;
  }

  .process-section {
    background: #ffffff;
  }

  .why-me {
    background: #0F1628;
    padding-bottom: 0;
  }



  /* Card accordion mobile */
  .service-card__header {
    background: #161D35;
    border-bottom-color: rgba(0,230,200,0.08);
  }

  .service-card__body {
    background: #161D35;
  }

  /* Process cards impilate */
  .process-card {
    background: #161D35;
    border: 1px solid rgba(0,230,200,0.10);
  }

  /* Why bande — padding mobile */
  .why-me__copy-band {
    padding-block: 1.5rem;
  }

  .why-me__grid-band {
    padding-block: 1.25rem 3.4rem;
  }

  /* Why grid 2 colonne */
  .why-block,
  .why-me__card {
    background: #161D35;
    border: 1px solid rgba(0,230,200,0.10);
  }

  /* Trust bar compatta */
  .trust-bar {
    padding: 9px 1rem;
  }

  /* Back to top più piccolo */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 16px;
  }
}

@media (max-width: 767px) {
  /* Headings su mobile — mantiene colore chiaro */
  h1, h2, h3, h4 {
    color: #F0F4FF;
  }

  /* Sezione metodo — testo scuro su cyan */
  .method h1,
  .method h2,
  .method h3,
  .method p {
    color: #0A0E1A;
  }

  /* FAQ page — testo scuro anche su mobile */
  .page-faq .faq-group__title {
    color: var(--color-primary);
  }

  .page-faq .faq-item__question {
    color: #0F1628;
  }

  .page-faq .faq-item__answer p,
  .page-faq .faq-intro p,
  .page-faq .faq-cta p {
    color: #475569;
  }
}

@media (min-width: 981px) {

  /* Sezione: contenitore relativo, altezza fissa */
  .hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
  }

  /* Background: occupa tutto lo spazio della section */
  .hero__background {
    position: absolute;
    inset: 0;
  }

  /* Immagine: altezza piena, larghezza automatica, ancorata a destra */
  .hero__image {
    position: absolute;
    right: 0;
    top: 0;
    height: auto;
    width: 65%;
    max-width: none;
    display: block;
  }

  /* Overlay gradiente: testo leggibile a sinistra, foto visibile a destra */
  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(4,6,12,1.00)  0%,
      rgba(4,6,12,1.00) 35%,
      rgba(4,6,12,0.90) 48%,
      rgba(4,6,12,0.55) 68%,
      rgba(4,6,12,0.12) 80%,
      rgba(4,6,12,0.00) 100%
    );
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Contenuto sopra l'overlay */
  .hero__content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    display: flex;
    align-items: center;
    min-height: 580px;
  }

  .hero__text-box {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    text-align: left;
    width: 52%;
    max-width: 620px;
    padding: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  /* Nasconde il layout mobile su desktop */
  .hero__mobile-split,
  .hero__mobile-text,
  .hero__mobile-cta,
  .hero__mobile-below {
    display: none;
  }

}

@media (max-width: 980px) {

  /* Nasconde il layout desktop su mobile */
  .hero__background,
  .hero__content {
    display: none;
  }

  .hero {
    min-height: auto;
    background: #0A0E1A;
    padding-bottom: 32px;
  }

  /* Split: foto a sinistra + diagonale */
  .hero__mobile-split {
    display: flex;
    position: relative;
    height: 260px;
    overflow: hidden;
    width: 100%;
  }

  .hero__mobile-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    overflow: hidden;
  }

  .hero__mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero__mobile-diagonal {
    position: absolute;
    top: 0;
    left: 44%;
    width: 32%;
    height: 100%;
    background: #0A0E1A;
    transform: skewX(-7deg);
    transform-origin: bottom left;
    z-index: 2;
  }

  /* linea doagonale per sezione hero */
  .hero__mobile-line {
    position: absolute;
    top: 0;
    left: 44%;
    width: 2px;
    height: 100%;
    background: #00E6C8;
    transform: skewX(-7deg);
    transform-origin: bottom left;
    z-index: 3;
    opacity: 0.45;
  }

  /* Testo sovrapposto a destra dello split */
  .hero__mobile-text {
    position: relative;
    z-index: 10;
    padding: 16px 20px 0 52%;
    margin-top: -260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
  }

  .hero__mobile-eyebrow {
    display: block;
    font-size: 0.625rem;
    color: rgba(0,230,200,0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .hero__mobile-text .hero__title {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    font-weight: 800;
    color: #F0F4FF;
    line-height: 1.18;
    margin: 0;
  }

  /* Bottoni CTA a piena larghezza sotto lo split */
  .hero__mobile-cta {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
    padding: 20px 16px 0;
    box-sizing: border-box;
    width: 100%;
  }

  .hero__mobile-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.8rem;
    padding: 12px 8px;
    white-space: normal;
    line-height: 1.2;
    box-sizing: border-box;
  }

  /* Sottotitolo sotto i bottoni */
  .hero__mobile-below {
    padding: 16px 20px 0;
  }

  .hero__mobile-below .hero__subtitle {
    font-size: 0.875rem;
    color: rgba(240,244,255,0.55);
    line-height: 1.65;
    margin: 0;
  }

}

.page-chi-sono {
  background: transparent !important;
}

/* Hero chi-sono: sfondo full-width, niente riquadro avatar */
.page-chi-sono .page-hero__avatar {
  display: none !important;
}

.page-chi-sono .page-hero__bg {
  background-size: cover;
  background-position: center top;
}

/* ── 1. INTRO — sfondo bianco ── */
.chi-sono-intro {
  background: #ffffff;
  /* Ripristina variabili CSS per leggibilità su sfondo bianco */
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  /* --color-primary scurito: link leggibili su bianco */
  --color-primary:    #0e7490;
}

/* strong: grigio scuro, più marcato del testo base */
.chi-sono-intro strong {
  color: #1e293b !important;
  font-weight: 700;
}

/* Cornice decorativa: proporzione 9:16, spostata in alto-destra */
.chi-sono-intro__portrait::before {
  top: -38px;
  right: -16px;
  left: auto;
  bottom: auto;
  width: 82%;
  aspect-ratio: 11/ 14;
  height: auto;
  opacity: 0.40;
}

.chi-sono-intro h1,
.chi-sono-intro h2,
.chi-sono-intro h3,
.chi-sono-intro h4 {
  color: #1e293b;
}

.chi-sono-intro p,
.chi-sono-intro__text,
.chi-sono-intro__text p {
  color: #475569;
}

/* Testo grigio più leggibile (es. paragrafo conclusivo dell'intro) */
.chi-sono-intro__text blockquote,
.chi-sono-intro blockquote {
  color: #374151;
  border-left-color: #0e7490;
}

/* Link nell'intro: teal scuro leggibile su bianco (contrasto ~5.2:1) */
.chi-sono-intro a,
.chi-sono-intro__text a {
  color: #0e7490 !important;
  text-decoration: underline;
  text-decoration-color: rgba(14,116,144,0.35);
  text-underline-offset: 3px;
}

.chi-sono-intro a:hover,
.chi-sono-intro__text a:hover {
  color: #0891b2 !important;
  text-decoration-color: #0891b2;
}

.chi-sono-intro__badge {
  background: #161D35;
  color: #F0F4FF;
  /* Centro sul bordo inferiore dell'immagine */
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  right: auto;
}

.chi-sono-intro__badge span {
  color: #00E6C8;
}

/* Cornice e badge mobile — stile indipendente dal desktop */
@media (max-width: 980px) {
  .chi-sono-intro__portrait::before {
    /* Reset posizionamento desktop (top-right) */
    top: -30px;
    left: 100px;
    right: auto;
    bottom: auto;
    /* Quadrato leggermente più piccolo dell'immagine, offset in basso-destra */
    width: 62%;
    aspect-ratio: 1 / 1.5;
    height: auto;
    border-width: 2px;
    opacity: 0.45;
  }

  .chi-sono-intro__badge {
    /* Mantieni centrato sul bordo inferiore */
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}

/* ── 2. STATS STRIP — sfondo scuro ── */
.stats-strip {
  background: #0A0E1A;
}

.stat-item__number {
  color: #00E6C8;
}

.stat-item__label {
  color: rgba(240,244,255,0.55);
}

/* ── 3. HOW I WORK — sfondo bianco ── */
.how-i-work {
  background: #ffffff;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

.how-i-work__title {
  color: #1e293b;
}

.how-i-work__subtitle {
  color: #64748b;
}

.how-i-work__tab-btn {
  color: #64748b;
  border-color: #e2e8f0;
  background: transparent;
}

.how-i-work__tab-btn.is-active,
.how-i-work__tab-btn:hover {
  color: #0e7490;
  border-color: #0e7490;
  background: rgba(14,116,144,0.07);
}

.how-i-work__col-title {
  color: #00E6C8;
}

@media (min-width: 981px) {
  .how-i-work__col-title {
    color: #1e293b;
  }
}

.how-i-work__block {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.how-i-work__block h4 {
  color: #00E6C8;
}

.how-i-work__block p {
  color: rgba(240,244,255,0.60);
}

/* ── 4. CITAZIONE — sfondo scuro ── */
.personal-quote {
  background: #0F1628;
}

.personal-quote__text {
  color: #F0F4FF;
}

.personal-quote__author {
  color: rgba(240,244,255,0.45);
}

/* ── 5. COSA NON FACCIO — sfondo bianco ── */
.what-i-dont {
  background: #ffffff;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

.what-i-dont .section-title {
  color: #1e293b;
}

.what-i-dont .section-subtitle,
.what-i-dont .section-subtitle strong {
  color: #64748b;
}

.dont-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}

.dont-card:hover {
  background: #1E2843;
  border-color: rgba(0,230,200,0.40);
  box-shadow: 0 10px 32px rgba(0,0,0,0.45),
              0 0 0 1px rgba(0,230,200,0.18),
              0 0 18px rgba(0,230,200,0.08);
  transform: translateY(-4px);
}

.dont-card__title {
  color: #F0F4FF;
}

.dont-card__text {
  color: rgba(240,244,255,0.60);
}

/* ── 6. TECH STACK — sfondo scuro ── */
.tech-stack-section {
  background: #0A0E1A;
}

.tech-stack-section .section-title {
  color: #F0F4FF;
}

.tech-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.10);
  box-shadow: var(--shadow-sm);
}

.tech-card__icon,
.tech-card__icon svg {
  color: #00E6C8;
  stroke: #00E6C8;
}

.tech-card__title {
  color: #F0F4FF;
}

.tech-card__note {
  color: rgba(240,244,255,0.45);
}

.tech-card__list li {
  color: rgba(240,244,255,0.65);
}

/* Tech-stack grid: 4 colonne desktop, 2 mobile */
@media (min-width: 981px) {
  .tech-stack__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 980px) {
  .tech-stack__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-card {
    grid-column: auto !important;
  }
}

/* ── 7. CTA — sfondo cyan ── */
.chi-sono-cta {
  background: #00E6C8;
}

.chi-sono-cta h2 {
  color: #0A0E1A;
}

.chi-sono-cta p {
  color: rgba(10,14,26,0.72);
}

.chi-sono-cta .btn--primary {
  background: #0A0E1A;
  color: #00E6C8;
  border-color: #0A0E1A;
  box-shadow: none;
}

.chi-sono-cta .btn--primary:hover {
  background: #0F1628;
  color: #00E6C8;
}

/* Reset wrapper */
.page-competenze {
  background: transparent !important;
}

/* Hero competenze/servizi: sfondo full-width, niente riquadro avatar */
.page-competenze .page-hero__avatar,
.page-servizi .page-hero__avatar {
  display: none !important;
}

.page-competenze .page-hero__bg,
.page-servizi .page-hero__bg {
  background-size: cover;
  background-position: center top;
}

/* Overlay degradante da sinistra (page-hero::after = hero__overlay) */
.page-competenze .page-hero::after,
.page-servizi .page-hero::after {
  background: linear-gradient(
    to right,
    rgba(10,14,26,0.92) 0%,
    rgba(10,14,26,0.80) 35%,
    rgba(10,14,26,0.45) 65%,
    rgba(10,14,26,0.15) 100%
  );
}

/* ── 1. COMPETENZE-SECTION — sfondo bianco ── */
.competenze-section {
  background: #ffffff;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

/* Titolo sezione leggibile su bianco */
.competenze-section .section-title {
  color: #1e293b;
}

/* Intro text: stessa larghezza delle card sotto */
.competenze-section .section-intro {
  max-width: none;
  text-align: center;
}

.competenze-section .section-intro p {
  color: #475569;
  max-width: 800px;
  margin-inline: auto;
}

/* Ultimo paragrafo corsivo: teal scuro leggibile su bianco */
.competenze-section .section-intro p:last-child {
  color: #0e7490;
}

/* Contenuto editor WordPress dentro section-intro */
.competenze-section .section-intro h1,
.competenze-section .section-intro h2,
.competenze-section .section-intro h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.competenze-section .section-intro p {
  color: #475569;
}

.competenze-section .section-intro strong {
  color: #1e293b;
  font-weight: 700;
}

.competenze-section .section-intro a {
  color: #0e7490 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Card comp-item: dark su sfondo bianco */
.comp-item {
  background: #161D35;
  border-color: rgba(0,230,200,0.12);
}

.comp-item__title {
  color: #F0F4FF;
}

.comp-item__subtitle {
  color: #00E6C8;
}

.comp-item__text {
  color: rgba(240,244,255,0.65);
}

/* Badge categoria: cyan palette */
.comp-item__category {
  color: #00E6C8;
  background: rgba(0,230,200,0.10);
  border-color: rgba(0,230,200,0.22);
}

.comp-item__outcomes-title {
  color: rgba(240,244,255,0.50);
}

.comp-item__outcomes li {
  color: rgba(240,244,255,0.80);
}

.comp-item__number {
  color: rgba(0,230,200,0.08);
}

/* Griglia contenitore: 4 card su una riga */
.competenze-list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

/* Ogni card: flex verticale, nessun layout a 2 colonne interno */
.comp-item {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  direction: ltr !important;
}

/* Annulla inversione nth-child(even) di main.css */
.comp-item:nth-child(even) {
  direction: ltr !important;
}

/* Nascondi trigger accordion, colonna visual e numero decorativo */
.comp-item__header-trigger {
  display: none !important;
}
.comp-item__visual {
  display: none !important;
}
.comp-item__number {
  display: none !important;
}

/* Contenuto: padding e layout verticale */
.comp-item__content {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 20px 18px !important;
  box-sizing: border-box !important;
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
  flex: 1 !important;
}

/* Impedisci che JS accordion collassi il contenuto */
.comp-item.acc-ready .comp-item__content,
.comp-item.is-closed .comp-item__content {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header interno (titolo + category) */
.comp-item__header {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 10px !important;
}

.comp-item__category {
  margin-bottom: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

.comp-item__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 4px !important;
}

.comp-item__subtitle {
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 0 10px !important;
}

.comp-item__text {
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}

/* Outcomes list */
.comp-item__outcomes {
  margin-bottom: 14px !important;
}

.comp-item__outcomes-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 6px !important;
}

.comp-item__outcomes ul,
.comp-item__outcomes ol {
  padding-left: 16px !important;
  margin: 0 !important;
}

.comp-item__outcomes li {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-bottom: 3px !important;
}

/* Tag tecnologie */
.comp-item__tech {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: auto !important;
}

.comp-item__tech span,
.comp-item__tech .tech-tag {
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
}

/* Tablet: 2 colonne */
@media (max-width: 1024px) {
  .competenze-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile: 2 colonne compatte */
@media (max-width: 600px) {
  .competenze-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .comp-item__content {
    padding: 14px 14px 12px !important;
  }
  .comp-item__title {
    font-size: 14px !important;
  }
}

/* ── 2. COMP-SYNERGY — sfondo scuro ── */
.comp-synergy {
  background: #0A0E1A;
}

.comp-synergy .section-title {
  color: #F0F4FF;
}

.comp-synergy .section-subtitle {
  color: rgba(240,244,255,0.55);
}

.synergy-card {
  background: #161D35;
  border-color: rgba(0,230,200,0.10);
}

.synergy-card:hover {
  background: #1E2843;
  border-color: rgba(0,230,200,0.30);
}

.synergy-card__title {
  color: #F0F4FF;
}

.synergy-card__text {
  color: rgba(240,244,255,0.60);
}

/* ── SYNERGY CARDS — stile completo ── */
.synergy-card {
  background: #161D35;
  border: 1px solid rgba(0,230,200,0.12);
  border-radius: var(--border-radius-lg);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.synergy-card:hover {
  border-color: rgba(0,230,200,0.28);
  box-shadow: var(--shadow-md);
}

/* KPI — numero grande in cima */
.synergy-card .combo-kpi,
.synergy-card [class*="kpi"],
.synergy-card strong:first-child {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00E6C8;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  display: block;
}

/* Label sotto il KPI */
.synergy-card .combo-kpi-label,
.synergy-card [class*="kpi-label"] {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(240,244,255,0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,230,200,0.08);
  display: block;
}

/* Titolo card */
.synergy-card h3,
.synergy-card__title,
.synergy-card [class*="title"] {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #F0F4FF;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Testo descrittivo */
.synergy-card p,
.synergy-card__text,
.synergy-card [class*="text"] {
  font-size: 0.8125rem;
  color: rgba(240,244,255,0.45);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

/* Tag tecnologie */
.synergy-card [class*="tag"],
.synergy-card [class*="tags"] span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(0,230,200,0.65);
  background: rgba(0,230,200,0.07);
  border: 1px solid rgba(0,230,200,0.14);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
}

/* Mobile */
@media (max-width: 767px) {
  .synergy-card {
    padding: 16px 18px 14px;
  }

  .synergy-card .combo-kpi,
  .synergy-card strong:first-child {
    font-size: 1.875rem;
  }

  .synergy-card h3,
  .synergy-card__title {
    font-size: 0.875rem;
  }

  .synergy-card p,
  .synergy-card__text {
    font-size: 0.75rem;
  }
}


/* Mobile — una colonna */
@media (max-width: 767px) {
  .competenze-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .comp-item__title {
    font-size: 0.9375rem;
  }

  .comp-item__subtitle {
    font-size: 0.75rem;
  }

  .comp-item__text {
    font-size: 0.75rem;
  }

  .comp-item__content {
    padding: 16px 16px 14px;
  }
}

/* Hero Servizi mobile — respiro sezione intro */
@media (max-width: 767px) {
  .competenze-section {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .competenze-section .section-intro {
    padding: 0 1.25rem;
    margin-bottom: 2rem;
  }

  .competenze-section .section-intro p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* MODIFICA 2 — Allineamento intro mobile */
@media (max-width: 767px) {
  .competenze-section .section-intro,
  .competenze-section .section-intro p,
  .competenze-section .section-intro h2 {
    text-align: left;
  }
}

/* MODIFICA 4 — Card servizi e tag mobile */
@media (max-width: 767px) {
  .comp-item__text {
    display: none;
  }

  .comp-item__tech-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .comp-item__content {
    padding: 14px 14px 12px;
  }

  .comp-item__outcomes li {
    font-size: 0.8125rem;
  }

  .competenze-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* MODIFICA 5 — Card combinazioni mobile */
@media (max-width: 767px) {
  .comp-synergy__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .synergy-card {
    background: #161D35;
    border: 1px solid rgba(0,230,200,0.12);
    border-radius: 12px;
    padding: 16px;
  }

  .synergy-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #F0F4FF;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .synergy-card__text {
    font-size: 0.8125rem;
    color: rgba(240,244,255,0.45);
    line-height: 1.6;
  }
}

/* MODIFICA 6 — Overlay hero più scuro mobile */
@media (max-width: 767px) {
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,14,26,0.88) 0%,
      rgba(10,14,26,0.78) 50%,
      rgba(10,14,26,0.65) 100%
    );
  }
}

/* MODIFICA 7 — Back to top mobile */
@media (max-width: 767px) {
  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: 16px;
    right: 12px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* MODIFICA 8 — Active link footer mobile */
@media (max-width: 767px) {
  .site-footer a:active,
  .footer-nav a:active,
  .footer-links a:active {
    color: #00E6C8;
    opacity: 0.85;
  }
}

/* ── ACCORDION MOBILE SERVIZI ── */

@media (max-width: 980px) {

  .comp-item__header-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .comp-item__header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,230,200,0.08);
    border: 1px solid rgba(0,230,200,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00E6C8;
    flex-shrink: 0;
  }

  .comp-item__header-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .comp-item__category-trigger {
    font-size: 9px;
    font-weight: 700;
    color: rgba(0,230,200,0.55);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .comp-item__title-trigger {
    font-size: 13px;
    font-weight: 700;
    color: #F0F4FF;
    line-height: 1.25;
  }

  .comp-item__sub-trigger {
    font-size: 11px;
    color: rgba(0,230,200,0.65);
    font-style: italic;
    line-height: 1.4;
  }

  .comp-item__chevron {
    font-size: 20px;
    color: rgba(0,230,200,0.55);
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
                color 0.15s ease;
  }

  .comp-item.acc-open .comp-item__chevron {
    transform: rotate(180deg);
    color: #00E6C8;
  }

  .comp-item__header-trigger:focus-visible {
    outline: 2px solid rgba(0,230,200,0.5);
    outline-offset: -2px;
    border-radius: 12px;
  }

  .comp-item.acc-ready {
    border-color: rgba(0,230,200,0.10);
    transition: border-color 0.2s ease;
  }

  .comp-item.acc-open {
    border-color: rgba(0,230,200,0.30);
  }

  .comp-item.acc-ready .comp-item__content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid rgba(0,230,200,0.07);
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1),
                padding 0.25s ease;
  }

  .comp-item.acc-open .comp-item__content {
    max-height: 600px;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .comp-item.acc-ready .comp-item__category,
  .comp-item.acc-ready .comp-item__title,
  .comp-item.acc-ready .comp-item__subtitle {
    display: none;
  }

  .comp-item__visual {
    display: none;
  }

  .competenze-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

}

@media (min-width: 981px) {
  .comp-item__header-trigger {
    display: none;
  }
}

/* Sfondo bianco garantito indipendentemente dalla palette */
.portfolio-page-section {
  background: #ffffff;
}

/* Titolo sezione: navy su bianco — già ok via var(--color-navy),
   ma forziamo per sicurezza */
.portfolio-page-section .section-title {
  color: #0f172a;
}

/* Sottotitolo: il var(--color-text-muted) palette-b
   è rgba(240,244,255,.55) = bianco semitrasparente su bianco
   → forzato a grigio leggibile */
.portfolio-page-section .section-description {
  color: #475569;
}

/* ─── FILTER BAR ─── */

/* Sfondo chiaro invece del var(--color-bg-section) = #0A0E1A */
.portfolio-page-section .portfolio-filter-bar {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Bottoni categoria: testo grigio scuro leggibile su chiaro */
.portfolio-page-section .filter-btn {
  background: #ffffff;
  color: #475569;
  border-color: #e2e8f0;
}

.portfolio-page-section .filter-btn:hover {
  border-color: var(--color-primary);   /* #00E6C8 */
  color: #009e8a;
}

.portfolio-page-section .filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0A0E1A;
}

/* Search input: var(--color-text) palette-b = #F0F4FF (bianco)
   su background:#fff → testo invisibile; forzato scuro */
.portfolio-page-section .portfolio-search-input {
  background: #ffffff;
  color: #1e293b;
  border-color: #e2e8f0;
}

.portfolio-page-section .portfolio-search-input::placeholder {
  color: #94a3b8;
}

.portfolio-page-section .portfolio-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,230,200,0.18);
}

/* Messaggio "nessun risultato" */
.portfolio-page-section .pf-no-results {
  color: #64748b;
}

.insight-card__title {
  color: #F0F4FF;
}

.insight-card__title a {
  color: #F0F4FF;
}

.insight-card__title a:hover {
  color: #00E6C8;
}

.articoli-filters-wrap {
  background: #0a0e1a;
  --color-text:       #1e293b;
  --color-text:       #ffffff;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

.articoli-filters-wrap .container {
  padding-inline: 0.8rem;
}

.articoli-filters-wrap .filter-pill {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.articoli-filters-wrap .filter-pill:hover,
.articoli-filters-wrap .filter-pill.active {
  background: #00E6C8;
  border-color: #00E6C8;
  color: #0A0E1A;
}

.articoli-grid-wrap{
   background: #f1f5f9;
}

.single-content-section {
  background: #ffffff;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

.single-content-section h1,
.single-content-section h2,
.single-content-section h3,
.single-content-section h4 {
  color: #1e293b;
}

.single-content-section .entry__content {
  color: #263244;
}

/* Fade progressivo sul bordo sinistro dell'immagine di sfondo */
.page-hero--contatti .page-hero__bg {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 28%,
    rgba(0,0,0,0.35) 42%,
    rgba(0,0,0,0.75) 56%,
    black 72%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 28%,
    rgba(0,0,0,0.35) 42%,
    rgba(0,0,0,0.75) 56%,
    black 72%
  );
}

/* Rafforzamento overlay sinistra per blend più netto */
.page-hero--contatti::after {
  background: linear-gradient(
    to right,
    var(--color-navy) 0%,
    var(--color-navy) 22%,
    rgba(10,15,30,0.80) 36%,
    rgba(10,15,30,0.20) 58%,
    transparent 75%
  );
}

@media (max-width: 767px) {
  .page-hero--contatti .page-hero__bg {
    -webkit-mask-image: none;
    mask-image: none;
  }
}


/*  */

.cf7-col, .cf7-col-full {
  color: #1e293b;
}