/* ====== Design system ====== */
:root {
  --bg: #121c27; /* navy 900 */
  --bg-2: #18283a; /* navy 800 */
  --card: #ffffff;
  --text: #0e1116;
  --muted: #5f6b7a;
  --primary: #2fb885; /* emerald 500, leggermente desat. */
  --primary-700: #239e72; /* hover più scuro */
  --primary-300: #b7f1df;
  --link: #1667c4;
  --ring: rgba(47, 184, 133, 0.35);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 17, 22, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--text);
  background: #f7f9fb;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.7;
  color: #2a3441;
}
h1,
h2,
h3 {
  color: #0e1116;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ====== Header ====== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  transition: all 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0e1116;
}
.brand img {
  height: 32px;
  width: auto;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a {
  color: #2a3441;
  font-weight: 600;
  opacity: 0.9;
  padding: 12px 16px;
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav a:hover {
  color: #0e1116;
  background-color: rgba(47, 184, 133, 0.1);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.button--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.button--primary:hover {
  background: var(--primary-700);
  color: #ffffff;
}
.button--ghost {
  background: transparent;
  border-color: #cfd8e3;
  color: #0e1116;
}
.button--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-700);
}
.button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #2a3441;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop call button - hide on mobile */
.button--desktop-call {
  display: inline-flex;
}

/* Mobile call button - hide on desktop */
.button--mobile-call {
  display: none !important;
}

/* ====== Hero ====== */
.hero {
  background: linear-gradient(180deg, #183149, #121c27);
  color: #dbe7f3;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  color: #ffffff;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: #e8f1f8;
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(16px, 1.6vw, 18px);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}
.trust-bullets li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cfe2f1;
  font-weight: 600;
  font-size: 0.9rem;
}
.trust-bullets i {
  color: var(--primary-300);
  font-size: 20px;
}

.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}
.hero-art .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
  z-index: 0;
}
.hero-art .one {
  width: 300px;
  height: 300px;
  background: #38e6a9;
  right: -40px;
  top: 10%;
}
.hero-art .two {
  width: 240px;
  height: 240px;
  background: #6bc3ff;
  left: 10%;
  bottom: 0;
}

.clients {
  padding: 24px 0 8px;
}
.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}
.logos img {
  height: 42px;
  width: auto;
  margin-inline: auto;
  opacity: 0.9;
  transition: all 0.2s ease;
}
.logos img:hover {
  filter: none;
  opacity: 1;
}

/* ====== About ====== */
.about {
  padding: 72px 0;
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.about-media img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.tick-list {
  columns: 2;
  gap: 20px;
  padding-left: 18px;
}
.tick-list li {
  margin: 6px 0;
}
.stat-bar {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.stat {
  background: #f2faf6;
  border: 1px solid #def4ea;
  padding: 12px 16px;
  border-radius: 12px;
}
.stat strong {
  display: block;
  font-size: 22px;
}

/* ====== Experience ====== */
.asap-section .experience-copy {
  position: relative;
  z-index: 1;
}

.asap-section .experience-copy .title-band {
  text-align: left;
  margin-bottom: 28px;
}

.asap-section .experience-copy .title-band::before {
  background: radial-gradient(
    60% 120% at 10% 50%,
    rgba(123, 217, 255, 0.15) 0%,
    transparent 70%
  );
}

.asap-section .experience-copy .h-title {
  color: #ffffff;
}

.asap-section .experience-copy .eyebrow {
  color: #7bd9ff;
  background: rgba(123, 217, 255, 0.12);
  border: 1px solid rgba(123, 217, 255, 0.25);
}

.experience-grid {
  max-width: none;
  margin: 0;
}

.experience-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.asap-section .experience-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d6e6f3;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.asap-section .experience-list li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.asap-section .experience-list li i {
  color: #7bd9ff;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.asap-section .experience-note {
  text-align: left;
  max-width: none;
  margin: 20px 0 0;
  font-size: 1rem;
  color: #b8d4e8;
  line-height: 1.7;
}

/* Media (immagini) */
.experience-media {
  position: relative;
  z-index: 1;
}

.experience-media .img-main {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.experience-media .img-over {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 46%;
  min-width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 991px) {
  .experience-media .img-over {
    position: absolute;
    right: 12px;
    bottom: -18px;
    width: 48%;
  }
}

@media (max-width: 768px) {
  .experience-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .experience-media .img-over {
    display: none;
  }
}

/* ====== Experience ====== */
.experience {
  padding: 60px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

/* ====== Approach ====== */
.approach {
  padding: 30px 0;
  background: #fff;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.approach-copy p {
  max-width: none;
}
.approach-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.approach-list li {
  display: grid;
  grid-template-columns: 34px auto;
  gap: 12px;
  align-items: flex-start;
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: 14px;
  padding: 12px 14px;
}
.approach-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 184, 133, 0.18);
  color: #0b251a;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.28);
}
.approach-panel {
  background: linear-gradient(180deg, #183149, #121c27);
  color: #eaf3fb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.approach-panel h3 {
  color: #ffffff;
  margin: 0 0 8px;
}
.approach-panel p {
  color: #d6e6f3;
  margin: 0 0 16px;
}
.approach-metrics {
  display: grid;
  gap: 12px;
}
.approach-metrics strong {
  display: block;
  font-size: 22px;
  color: #ffffff;
}
.approach-metrics span {
  color: #cfe0ee;
}

/* ====== Method ====== */
.method {
  background: #f7f9fb;
  padding: 72px 0;
}
.method h2 {
  text-align: center;
  margin-bottom: 26px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.step {
  font-size: 1em;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--primary);
  color: #0b251a;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* ====== Services ====== */
.services {
  padding: 72px 0;
  background: #fff;
}
.services h2 {
  text-align: center;
  margin-bottom: 26px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e9fbf4;
  color: #0b251a;
  margin-bottom: 8px;
}
.card .icon i {
  font-size: 22px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(14, 17, 22, 0.18);
}

/* ====== Target Section ====== */
.target-section {
  padding: 72px 0;
}

.target-section .title-band {
  text-align: center;
  margin-bottom: 40px;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.target-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.5;
  transition: transform 0.2s ease;
}

.target-list li:hover {
  transform: translateX(4px);
}

.target-list li i {
  flex-shrink: 0;
  font-size: 1.2rem;
  margin-top: 2px;
}

.target-list--yes li {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(34, 197, 94, 0.05) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.target-list--yes li i {
  color: #22c55e;
}

.target-list--no li {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.08) 0%,
    rgba(239, 68, 68, 0.03) 100%
  );
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.target-list--no li i {
  color: #ef4444;
}

.target-closing {
  text-align: center;
  max-width: 830px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.target-closing .closing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.target-closing .closing-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .target-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .target-closing {
    padding: 24px;
  }
}

/* ====== Testimonials ====== */
.testimonials {
  padding: 72px 0;
  background: #0f1a24;
  color: #d4dee8;
}
.testimonials h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.t-card {
  background: #132334;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-left: 0;
  margin-right: 0;
}
.t-card blockquote {
  margin: 6px 0 10px;
  color: #e5eef6;
}
.stars {
  color: #ffd76a;
  letter-spacing: 2px;
  font-size: 18px;
}

/* ====== Prefooter CTA ====== */
.prefooter-cta {
  background: linear-gradient(135deg, #15283b, #0e1822);
  color: #e5eef6;
  padding: 40px 0;
}
.pf-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pf-text h3 {
  color: #fff;
  margin: 0 0 6px;
}
.pf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== Footer ====== */
.site-footer {
  background: #0f1a24;
  color: #b9c6d3;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 28px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  background-color: white;
  border-radius: 10px;
  padding: 2px;
}
.footer-bio {
  margin: 6px 0 14px;
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.footer-social a:hover {
  background: var(--primary);
  color: #0b251a;
}
.fcol h6 {
  color: #fff;
  margin-bottom: 10px;
}
.footer-links,
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-contacts li {
  margin: 8px 0;
}
.footer-contacts li {
  font-size: 0.8rem;
}
.footer-links a {
  color: #d4dee8;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contacts a {
  color: #d4dee8;
  text-decoration: underline;
}
.footer-note {
  font-size: 13px;
  color: #93a6b6;
  margin-top: 10px;
}
.footer-bottom {
  margin-top: 26px;
  background: #0b141c;
}
.fb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.back-to-top {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.back-to-top:hover {
  background: var(--primary);
  color: #0b251a;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #0b251a;
  box-shadow: var(--shadow);
  z-index: 99;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .trust-bullets {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .t-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Menu mobile */
  .menu-toggle {
    display: flex;
  }

  .button--desktop-call {
    display: none;
  }

  .nav {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #e5e9f0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 90;
  }

  .nav.active {
    max-height: 500px;
    padding: 16px;
  }

  .nav a {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f4f8;
    width: 100%;
    text-align: center;
    border-radius: 0;
    background: transparent;
  }

  .nav a:hover {
    background-color: rgba(47, 184, 133, 0.1);
  }

  .nav a:last-of-type {
    border-bottom: none;
  }

  .button--mobile-call {
    display: flex !important;
    margin-top: 8px;
    width: 100%;
  }

  .navbar .nav .button--mobile-call {
    border-radius: 12px;
    border-bottom: none;
  }

  .nav .button--mobile-call:hover {
    background: var(--primary-700);
  }
}
@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pf-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Header link colors: chiaro su hero scuro, scuro quando sticky */
.site-header .nav a,
.site-header .brand span {
  color: #e8f1f8;
}
.site-header.is-stuck .nav a {
  color: #2a3441;
}
.site-header.is-stuck .brand span {
  color: #0e1116;
}
.site-header .nav a:hover {
  color: #ffffff;
}

/* Ghost buttons on dark sections (hero) */
.hero .button--ghost {
  color: #e8f1f8;
  border-color: rgba(255, 255, 255, 0.42);
}
.hero .button--ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Header colors & CTA */
.site-header .nav a,
.site-header .brand span {
  color: rgba(255, 255, 255, 0.92);
}
.site-header .nav a:hover {
  color: #ffffff;
}
.site-header .brand span {
  font-weight: 800;
}
.site-header .button--primary {
  color: #ffffff;
}
.site-header .button--ghost {
  color: #f5fbff;
  border-color: rgba(255, 255, 255, 0.4);
}
.site-header.is-stuck .nav a {
  color: #2a3441;
}
.site-header.is-stuck .nav a:hover {
  color: #0e1116;
}
.site-header.is-stuck .brand span {
  color: #0e1116;
}
.site-header.is-stuck .button--ghost {
  color: #0e1116;
  border-color: #cfd8e3;
}

.button--ghost:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.site-header.is-stuck .button--ghost:focus-visible {
  outline: 3px solid var(--ring);
}

/* === Patch v5: header & buttons === */

/* Force white background when sticky and dark text */
.site-header.is-stuck {
  background: #ffffff !important;
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.site-header.is-stuck .brand span,
.site-header.is-stuck .nav a {
  color: #0e1116 !important;
  opacity: 1 !important;
}
.site-header.is-stuck .nav a:hover {
  color: #183149 !important;
}

/* Ensure header CTA readability in both states */
.site-header .button.button--primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.site-header .button.button--primary:hover {
  background: var(--primary-700) !important;
}

/* Ghost button style in hero (no fill) */
.hero .button--ghost {
  background: transparent !important;
  color: #e8f1f8 !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
}
.hero .button--ghost:hover {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Fix generic .button defaults that might be inherited from older CSS */
.button {
  border: 2px solid transparent;
}
/* === Fix colore testi header (no cambio sfondo) === */
#navbar .brand,
#navbar .brand span,
#navbar .nav a,
.site-header .brand,
.site-header .brand span,
.site-header .nav a,
.navbar .nav-link,
.navbar-light .navbar-nav .nav-link {
  color: #2a324d !important; /* navy scuro, ben leggibile su bianco */
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}
#navbar .nav a:hover,
.navbar .nav-link:hover {
  color: #1f2937 !important;
}

/* Se il logo venisse “schiarito” da qualche filtro */
#navbar .brand img,
.site-header .brand img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* CTA header sempre leggibile */
#navbar .button.button--primary,
.site-header .button.button--primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
/* === v6: tuning colori parte inferiore (prefooter + footer) === */

/* PREFOOTER CTA: più contrasto su sfondo scuro */
.prefooter-cta {
  background: linear-gradient(135deg, #1c3046, #0e1a24) !important;
  color: #eaf3fb !important;
}
.prefooter-cta .pf-text h3 {
  color: #ffffff !important;
}
.prefooter-cta .pf-text p {
  color: #d6e6f3 !important;
  opacity: 1 !important;
}

/* Bottoni nel prefooter */
.prefooter-cta .button--primary {
  background: var(--primary) !important;
  color: #ffffff !important;
}
.prefooter-cta .button--primary:hover {
  background: var(--primary-700) !important;
}
.prefooter-cta .button--ghost {
  background: transparent !important;
  color: #eaf3fb !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}
.prefooter-cta .button--ghost:hover {
  background: #ffffff !important;
  color: #0e1a24 !important;
  border-color: #ffffff !important;
}

/* FOOTER: navy più morbido, testi/links più chiari */
.site-footer {
  background: #0c131b !important;
  color: #d1dde8 !important;
}
.fcol h6 {
  color: #f7fbff !important;
}
.footer-bio {
  color: #c0cfdb !important;
}
.footer-links a,
.footer-contacts a {
  color: #e2ecf5 !important;
}
.footer-links a:hover,
.footer-contacts a:hover {
  color: #b7f1df !important;
}
.footer-note {
  color: #aabac7 !important;
}

/* Social e bottom */
.footer-social a {
  background: rgba(255, 255, 255, 0.12) !important;
}
.footer-social a:hover {
  background: var(--primary) !important;
  color: #0b251a !important;
}
.footer-bottom {
  background: #0a1016 !important;
}
.footer-bottom p {
  color: #a9b9c7 !important;
}
.back-to-top {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}
.back-to-top:hover {
  background: var(--primary) !important;
  color: #0b251a !important;
}
/* Sezione "Perché scegliere noi" – variante delle t-card */
.t-grid--why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.t-card--why {
  padding: 22px 24px;
}
.t-card--why h3 {
  margin: 16px 0 10px;
  font-weight: 700;
}
.t-card--why p {
  margin: 0;
  opacity: 0.9;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 184, 133, 0.15); /* var(--primary) “soft” */
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.25);
}
.why-icon i {
  font-size: 20px;
  color: var(--primary);
}

.why-note {
  display: block;
  margin-top: 14px;
  opacity: 0.75;
}

/* responsive */
@media (max-width: 991px) {
  .t-grid--why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .t-grid--why {
    grid-template-columns: 1fr;
  }
}
/* --- Perché scegliere noi? (contrasto su fondo scuro) --- */
#perche-noi h2 {
  color: #ffffff !important;
}
#perche-noi .t-card--why {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25) !important;
  color: #e8f1f8 !important; /* colore di default dentro la card */
}
#perche-noi .t-card--why h3 {
  color: #f7fbff !important;
}
#perche-noi .t-card--why p {
  color: #d6e6f3 !important;
  opacity: 1 !important; /* annulla eventuali opacità ereditate */
}
#perche-noi .why-icon {
  background: rgba(47, 184, 133, 0.16) !important; /* soft primary */
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.28) !important;
}
#perche-noi .why-icon i {
  color: #b7f1df !important;
}
#perche-noi .why-note {
  color: #c4d3e1 !important;
  opacity: 1 !important;
}
/* Icone nelle card dei servizi */
.services .card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 184, 133, 0.12); /* soft primary */
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.22);
  margin-bottom: 10px;
}
.services .card .icon i {
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
}

/* legibilità su sfondo scuro */
.services .card h3 {
  color: #f7fbff;
}
.services .card p {
  color: #d6e6f3;
}

/* distanze tra i due blocchi di card se non vuoi <br><br> */
#servizi .container + .container {
  margin-top: 48px;
}
/* Fascia loghi – senza scroll, tutti uguali */
.press {
  background: linear-gradient(180deg, #18283a, #121c27);
  padding: 40px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  margin-top: 50px;
}
.press-eyebrow {
  display: inline-block;
  text-align: center;
  color: #7bd9ff;
  background: rgba(123, 217, 255, 0.12);
  border: 1px solid rgba(123, 217, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.press .container {
  text-align: center;
}
.press-title {
  color: #fff;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

/* Carosello infinito */
.press-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  padding: 20px;
}

.press-track {
  display: flex;
  gap: 60px;
  animation: scroll-logos 40s linear infinite;
  width: max-content;
}

.press-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.press-logo {
  height: clamp(36px, 3vw + 16px, 56px);
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(1.75) contrast(1.05);
  opacity: 0.85;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

.press-logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.12);
}

/* Fix per il_centro.png che non risponde ai filtri standard */
.press-logo--ilcentro {
  filter: grayscale(100%) brightness(2) contrast(0.1) saturate(0);
}
.press-logo--ilcentro:hover {
  filter: grayscale(0) brightness(1) contrast(1) saturate(1);
  transform: scale(1.12);
}

/* Fasi dell'impresa */
.enterprise-phases {
  padding: 25px 0;
  background: #fff;
}
.enterprise-phases .row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.enterprise-phases .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 28px;
  height: 100%;
}
.enterprise-phases .card {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 991px) {
  .enterprise-phases .row {
    grid-template-columns: 1fr;
  }
  .enterprise-phases .card {
    height: auto;
  }
}
.enterprise-phases .card h3 {
  margin-bottom: 10px;
}
.enterprise-phases .card ul {
  margin: 0;
  padding-left: 18px;
}
.enterprise-phases .card li {
  margin: 8px 0;
}

.enterprise-phases .intervention-box {
  margin-top: 49px;
  background: linear-gradient(135deg, #183149, #121c27);
  color: #eaf3fb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.enterprise-phases .intervention-box h3 {
  color: #ffffff;
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.enterprise-phases .intervention-box p {
  color: #d6e6f3;
  margin: 0 0 10px;
}
.enterprise-phases .intervention-box ul {
  margin: 0 0 12px;
  padding-left: 18px;
}
.enterprise-phases .intervention-box li {
  margin: 6px 0;
  color: #e3edf7;
}

@media (max-width: 991px) {
  .enterprise-phases .row {
    grid-template-columns: 1fr;
  }
  .enterprise-phases .col-4 {
    order: -1;
  }
  .enterprise-phases .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive carosello testate */
@media (max-width: 768px) {
  .press-track {
    gap: 40px;
  }
  .press-logo {
    height: clamp(28px, 4vw, 40px);
  }
}
/* ===== Metodo ASAP (dark) ===== */
.asap-section {
  background: linear-gradient(180deg, #183149, #121c27);
  padding: 64px 0;
  color: #eaf3fb;
}
.asap-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.asap-copy h2 {
  color: #ffffff;
  margin-bottom: 12px;
}
.asap-copy p {
  color: #d6e6f3;
}

/* elenco pilastri */
.asap-list {
  margin: 18px 0 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-left: 0 !important;
}
.asap-list li {
  display: grid;
  grid-template-columns: 44px auto;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.asap-list i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 184, 133, 0.14);
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.26);
  color: #b7f1df;
  font-size: 20px;
}
.asap-list strong {
  color: #ffffff;
}

/* CTA su dark */
.asap-section .button--ghost {
  color: #eaf3fb;
  border-color: rgba(255, 255, 255, 0.55);
}
.asap-section .button--ghost:hover {
  color: #0e1a24;
  background: #ffffff;
  border-color: #ffffff;
}

.asap-note {
  margin-top: 12px;
  opacity: 0.9;
  color: #cfe0ee;
}

/* media (immagini sovrapposte) */
.asap-media {
  position: relative;
}
.asap-media .img-main {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.asap-media .img-over {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 46%;
  min-width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* responsive */
@media (max-width: 991px) {
  .asap-grid {
    grid-template-columns: 1fr;
  }
  .asap-media .img-over {
    position: absolute;
    right: 12px;
    bottom: -18px;
    width: 48%;
  }
}
@media (max-width: 560px) {
  .asap-section {
    padding: 48px 0;
  }
  .asap-media .img-over {
    display: none;
  } /* se lo spazio è minimo */
}
/* Rifiniture Metodo ASAP */
.asap-grid {
  grid-template-columns: 1.1fr 0.9fr; /* un filo più spazio al testo */
  gap: 56px;
}
.asap-copy p.lead,
.asap-copy > p:first-of-type {
  max-width: 62ch;
}

.asap-list li {
  display: grid;
  grid-template-columns: 52px auto;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.asap-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.18);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.asap-list li:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(47, 184, 133, 0.28);
}
.asap-list li:hover::after {
  opacity: 1;
}

.asap-list i {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 184, 133, 0.14);
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.26);
  color: #b7f1df;
  font-size: 22px;
}
.asap-list strong {
  color: #fff;
}
.asap-list li div {
  color: #d6e6f3;
}

/* Media: immagini leggermente più “card” e posizionamento */
.asap-media .img-main {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.asap-media .img-over {
  right: -18px;
  bottom: -18px;
  width: 44%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 991px) {
  .asap-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .asap-media .img-over {
    right: 12px;
    bottom: -16px;
    width: 46%;
  }
}
@media (max-width: 560px) {
  .asap-media .img-over {
    display: none;
  }
}
/* --- Fix colori per #servizi su fondo chiaro --- */
#servizi h2 {
  color: #0e1116 !important;
}

#servizi .card {
  background: #ffffff;
  border: 1px solid #e6edf5;
  box-shadow: 0 10px 30px rgba(14, 17, 22, 0.06);
}

#servizi .card h3 {
  color: #0e1116 !important;
  opacity: 1 !important;
}

#servizi .card p {
  color: #2a3441 !important;
  opacity: 1 !important;
}

/* icone ok anche su chiaro */
#servizi .card .icon {
  background: rgba(47, 184, 133, 0.12);
  box-shadow: inset 0 0 0 2px rgba(47, 184, 133, 0.22);
}
/* --- Recensioni: gallery di sole immagini --- */
.t-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.testimonials--images .t-card--img {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(14, 17, 22, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.testimonials--images .t-card--img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14, 17, 22, 0.12);
}

.testimonials--images .t-card--img a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

/* Mantiene le card allineate anche con screenshot di proporzioni diverse */
.testimonials--images .t-card--img img {
  display: block;
  width: 100%;
  height: 260px; /* altezza uniforme */
  object-fit: contain; /* nessun taglio, letterbox se serve */
  background: #fff; /* sfondo neutro per immagini trasparenti */
}

/* Responsive */
@media (max-width: 1100px) {
  .t-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonials--images .t-card--img img {
    height: 240px;
  }
}
@media (max-width: 560px) {
  .t-grid--4 {
    grid-template-columns: 1fr;
  }
  .testimonials--images .t-card--img img {
    height: 220px;
  }
}
/* === Recensioni: mantieni dimensioni originali, ma tutte su una riga === */
.t-grid--review {
  --gap: 28px;
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap; /* tutte su una riga su desktop */
}

.t-grid--review .t-card--img {
  flex: 0 1 auto;
  max-width: calc((100% - (3 * var(--gap))) / 4); /* 4 immagini con gap */
}

.t-grid--review .t-card--img img {
  width: 100%;
  height: auto !important; /* niente altezze fisse: rispetta l’originale */
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(14, 17, 22, 0.18);
}

/* hover (facoltativo) */
.t-grid--review .t-card--img:hover img {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(14, 17, 22, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* Mobile: una per riga */
@media (max-width: 768px) {
  .t-grid--review {
    flex-wrap: wrap;
  }
  .t-grid--review .t-card--img {
    max-width: 100%;
  }
}
/* Recensioni: Carosello con frecce */
.reviews {
  padding: 48px 0;
  background: #f8f9fa;
}
.reviews h2 {
  text-align: center;
  margin-bottom: 32px;
}
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.reviews-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 12px;
}
.reviews-track {
  display: flex;
  transition: transform 0.4s ease;
}
.review-slide {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
}
.review-img {
  display: block;
  max-height: 300px;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary, #183149);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.carousel-arrow:hover {
  background: var(--primary-dark, #0f1f2e);
  transform: scale(1.1);
}
.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.carousel-dot:hover {
  background: #999;
}
.carousel-dot.active {
  background: var(--primary, #183149);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .reviews-carousel {
    gap: 8px;
  }
  .review-slide {
    flex-basis: 100%;
    padding: 0;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .review-img {
    max-height: 240px;
  }
}

/* Centra i loghi nella fascia "clients" */
.clients .logos {
  display: flex;
  align-items: center;
  justify-content: center !important; /* sovrascrive eventuale space-between */
  gap: 56px; /* spazio tra i loghi */
  /* se preferisci, puoi anche limitare la larghezza del gruppo: */
  /* width: fit-content; margin-inline:auto; */
}
.clients .logos img {
  display: block; /* evita spazi bianchi inline */
  height: auto; /* tieni la dimensione già corretta */
}

/* Responsive: mantieni centrati e consenti a capo se serve */
@media (max-width: 768px) {
  .clients .logos {
    gap: 28px;
    flex-wrap: wrap;
  }
}
/* --- Fascia clients: loghi più piccoli e uniformi --- */
.clients {
  padding: 12px 0;
}

.clients .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px; /* spazio tra i loghi */
  flex-wrap: wrap; /* va a capo su schermi stretti */
}

/* Altezza uniforme per tutti i loghi */
.clients .logos img {
  display: block;
  height: 36px; /* <- regola qui la dimensione DESKTOP */
  width: auto; /* mantiene le proporzioni */
  max-width: 180px; /* evita loghi troppo lunghi */
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
  .clients .logos {
    gap: 24px;
  }
  .clients .logos img {
    height: 32px;
    max-width: 160px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .clients .logos {
    gap: 18px;
  }
  .clients .logos img {
    height: 28px;
    max-width: 140px;
  }
}
/* Footer: righe legali lunghe e leggibili */
.footer-legal {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 10px;
}
.footer-legal .legal-string {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cfd8e3;
  margin: 0 0 6px;
}
.footer-legal .meta-disclaimer {
  font-size: 12px;
  line-height: 1.45;
  color: #a8b4c4;
  margin: 0;
}

/* Colonne footer: testo coerente */
.site-footer .footer-bio,
.site-footer .footer-note {
  color: #cfe0ee;
}
.site-footer .footer-contacts li + li {
  margin-top: 10px;
}
/* ===== Titoli su sfondo chiaro ===== */
:root {
  --heading: #0e1116; /* colore testo titoli */
  --muted: #5f6b7a;
}

/* base */
.h-title {
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

/* 1) Marker/underline morbido */
.h-title--marker {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  background: linear-gradient(
    to bottom,
    transparent calc(100% - 10px),
    color-mix(in srgb, var(--primary) 22%, transparent) calc(100% - 10px),
    color-mix(in srgb, var(--primary) 22%, transparent) 100%
  );
  border-radius: 6px;
}

/* 2) Barra sinistra “notarile” */
.h-title--bar {
  position: relative;
  padding-left: 14px;
}
.h-title--bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 30%, #0e1116)
  );
  opacity: 0.9;
}

/* 3) Eyebrow/etichetta sopra il titolo */
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, #fff);
  padding: 4px 10px;
  border-radius: 999px;
}

/* 4) Banda morbida dietro al titolo (full width del container) */
.title-band {
  position: relative;
  padding-top: 8px;
  margin-bottom: 22px;
}
.title-band::before {
  content: "";
  position: absolute;
  inset: -10px -16px auto -16px;
  height: 56px;
  z-index: -1;
  background: radial-gradient(
    60% 120% at 10% 50%,
    color-mix(in srgb, var(--primary) 10%, #fff) 0%,
    transparent 70%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0)
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  border-radius: 18px;
}

/* dimensioni sensate */
h2.h-title {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
}
h3.h-title {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
}

/* sezione chiara: spazio tra titolo e contenuti */
.section-light h2 {
  margin-bottom: 14px;
}
/* Logo più grande + header pulito */
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  align-items: center;
}
.site-header .brand img {
  display: block;
  width: auto;
  height: clamp(
    38px,
    3.5vw + 18px,
    52px
  ); /* desktop più grande, mobile contenuto */
}

/* un po' più alto in cima, più compatto quando sticky */
.site-header {
  padding: 14px 0;
}
.site-header.is-stuck {
  padding: 8px 0;
}
.site-header.is-stuck .brand img {
  height: clamp(38px, 3.5vw + 18px, 52px);
}

/* piccolo equilibrio spazi tra logo e nav su schermi larghi */
@media (min-width: 1100px) {
  .site-header .nav-wrap {
    gap: 32px;
  }
}

/* su mobile, se il menu diventa a riga singola, mantieni allineamento */
@media (max-width: 768px) {
  .site-header .nav {
    gap: 16px;
  }
}
/* --- HERO: mobile first, mostra la foto subito --- */
@media (max-width: 768px) {
  .hero {
    padding: 16px 0 28px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr; /* una colonna */
    gap: 14px;
    align-items: start;
  }

  /* metti la foto PRIMA del testo */
  .hero-art {
    order: -1;
    display: grid;
    place-items: center;
    margin-top: 2px;
  }
  .hero-art img {
    width: min(86vw, 440px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  }

  /* titolone più compatto e leggibile sul piccolo */
  .hero-copy h1 {
    font-size: clamp(28px, 7.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
  }
  .hero-copy .lead {
    font-size: 0.98rem;
  }

  /* CTA e bullet più ariosi */
  .cta-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .trust-bullets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f2a4d 0%, #10365f 60%, #0c2240 100%);
  color: #f2f6ff;
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(123, 217, 255, 0.18) 0%,
    rgba(15, 42, 77, 0) 70%
  );
  pointer-events: none;
}

.video-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(47, 184, 133, 0.18) 0%,
    rgba(15, 42, 77, 0) 70%
  );

  pointer-events: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.video-thumbnail {
  width: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(6, 15, 28, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.video-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.video-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay i {
  font-size: 5rem;
  color: #fff;
  opacity: 0.9;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay i {
  transform: scale(1.1);
  opacity: 1;
}

.video-copy {
  text-align: left;
}

.video-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e5edf8;
  margin-bottom: 1rem;
}

.video-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.video-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 1.05rem;
  color: #e5edf8;
}

.video-list li i {
  color: #7bd9ff;
  font-size: 1.3rem;
}

.video-section .h-title {
  color: #ffffff;
}

.video-section .title-band::before {
  background: radial-gradient(
    60% 120% at 10% 50%,
    rgba(123, 217, 255, 0.2) 0%,
    transparent 70%
  );
}

.video-section .eyebrow {
  color: #7bd9ff;
  background: rgba(123, 217, 255, 0.12);
  border: 1px solid rgba(123, 217, 255, 0.25);
}

.video-section .button--primary {
  background: #ffffff;
  color: #0f2a4d;
  box-shadow: 0 12px 30px rgba(6, 15, 28, 0.25);
}

.video-section .button--primary:hover {
  background: #e6effc;
}

.video-section .button--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.video-section .button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Video section responsive */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-media {
    order: -1;
  }

  .video-copy {
    text-align: center;
  }

  .video-list {
    display: inline-block;
    text-align: left;
  }
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 820px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content button,
.video-section button {
  font-size: 1em;
}

.modal-content i,
.video-section i {
  font-size: 1.2em;
}

@media (max-width: 720px) {
  .modal-content p {
    font-size: 0.8rem;
  }
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.modal-content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.video-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fafafa;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group.form-group--full {
  margin-bottom: 1rem;
}

.form-group.form-group--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group.form-group--checkbox input {
  width: auto;
  padding: 0;
}

.form-group.form-group--checkbox a {
  color: var(--primary) !important;
  text-decoration: none;
}

.button--full {
  width: 100%;
  margin-top: 0.5rem;
}

/* Modal responsive */
@media (max-width: 1100px) {
  .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 720px) {
  .video-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    max-height: calc(100dvh - 1.5rem);
  }

  .modal-content h3 {
    font-size: 1.25rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  align-content: end;
  background: rgba(20, 20, 30, 0.332);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-content {
  position: relative;
  padding: 50px 100px;
  background-color: var(--heading);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-close {
  position: absolute;
  top: 12px;
  right: 5vw;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.861);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-close:hover {
  color: #fff;
}
.cookie-content p {
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 280px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-content a {
  color: var(--clr-accent, #c9a866);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-buttons .button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}
.cookie-buttons .button--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cookie-buttons .button--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .cookie-content {
    padding: 40px 40px;
  }
}

/* ============================
   Legal Pages (Privacy, Cookie)
   ============================ */
.legal-page {
  padding-top: 120px;
  background: var(--bg-1);
  min-height: 100vh;
}

.legal-container {
  max-width: 860px;
  padding: 2rem 1.5rem 4rem;
}

.legal-top-home {
  margin-bottom: 1.25rem;
}

.legal-top-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.legal-top-home-link:hover {
  background: var(--primary-700);
  color: #ffffff;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.legal-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-intro {
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.legal-block {
  margin-bottom: 1.75rem;
}

.legal-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.legal-block p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-contact-box {
  background: var(--bg-2);
  border-left: 3px solid var(--clr-accent);
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.legal-contact-box p {
  margin: 0.25rem 0;
  color: #fff;
}

.legal-contact-box a {
  color: #fff;
  text-decoration: none;
}

.legal-contact-box a:hover {
  text-decoration: underline;
}

.legal-list {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.legal-list li {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-list li strong {
  color: var(--heading);
}

.legal-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(201, 168, 102, 0.08);
  border-radius: 4px;
}

.legal-note a {
  color: var(--clr-accent);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-update {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.legal-back-link {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 500;
}

.legal-back-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-container {
    padding: 1.5rem 1rem 3rem;
  }

  .legal-title {
    font-size: 1.4rem;
  }

  .legal-block h2 {
    font-size: 1.05rem;
  }
}

/* ===== Blog-specific styles ===== */

/* Hero blog */
.blog-hero {
  background: linear-gradient(180deg, #183149, #121c27);
  color: #dbe7f3;
  padding: 72px 0 56px;
  text-align: center;
}
.blog-hero h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}
.blog-hero p {
  color: #c8dced;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.blog-hero .eyebrow {
  color: #7bd9ff;
  background: rgba(123, 217, 255, 0.12);
  border: 1px solid rgba(123, 217, 255, 0.25);
  margin-bottom: 14px;
}

/* Blog section */
.blog-section {
  padding: 64px 0 80px;
  background: #f7f9fb;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 991px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 17, 22, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(14, 17, 22, 0.14);
}
.blog-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e8f0;
}
.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-card__date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(47, 184, 133, 0.1);
  border: 1px solid rgba(47, 184, 133, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.blog-card__author {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0e1116;
  line-height: 1.3;
  margin: 0 0 10px;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card__cta {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
}

/* Load more button */
.load-more-wrap {
  text-align: center;
  margin-top: 8px;
}
.btn-load-more {
  display: none;
  gap: 8px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}
.btn-load-more.visible {
  display: inline-flex;
}
.btn-load-more i {
  transition: transform 0.3s ease;
}
.btn-load-more:hover i {
  transform: translateY(3px);
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.blog-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  color: #ccd5de;
}

/* Loading spinner */
.blog-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(47, 184, 133, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Detail Modal */
.post-modal .modal-content {
  max-width: 780px;
  padding: 0;
  overflow: hidden;
}
.post-modal__img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}
.post-modal__body {
  padding: 28px 32px 32px;
}
.post-modal__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.post-modal__title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #0e1116;
  margin: 0 0 16px;
  line-height: 1.25;
}
.post-modal__content {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a3441;
  white-space: pre-line;
}
@media (max-width: 600px) {
  .post-modal__body {
    padding: 20px;
  }
}
