/**
 * B.E. Progettazione e Costruzione
 * Animazioni hero slider, progress bar, scroll reveal (Tailwind integra il resto)
 */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

/* Guard anti-overflow orizzontale: clip non crea scroll-container, non rompe position:sticky.
   Su mobile rafforza il clip (Samsung Internet a volte ignora overflow-x sul solo html);
   su desktop lascio il body libero così lo sticky resta garantito. */
body {
  max-width: 100%;
}
@media (max-width: 1023px) {
  body {
    overflow-x: clip;
  }
}

/* Header scroll state */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: #e5e7eb;
}

/* Hero: slide visibility e transizione contenuto */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-bg {
  transition: transform 8s ease-out;
}

.hero-slide.active .hero-bg {
  transform: scale(1.05);
}

/* Progress bar autoplay */
.hero-progress-bar.animating {
  animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Hero dots: forma a capsula come in immagine */
.hero-dot-pill {
  width: 2rem;
  height: 0.375rem;
  border: none;
  border-radius: 9999px;
  background-color: rgba(107, 107, 107, 0.6);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.hero-dot-pill:hover {
  background-color: rgba(107, 107, 107, 0.8);
}

.hero-dot-pill.active {
  background-color: #CDCDCD;
  opacity: 1;
}

/* Projects: finestra 4 card, scroll con frecce, scrollbar nascosta */
.projects-viewport {
  max-width: 1200px;
  /* 4 card (280px) + 3 gap (20px) */
}

/* Card progetti: posizione come con margine 131px (solo desktop, su mobile esce dallo schermo) */
.projects-cards-offset {
  position: relative;
  left: 0;
}

@media (min-width: 1024px) {
  .projects-cards-offset {
    left: 131px;
  }
}

/* Spostamento a destra: tutto il blocco (titolo "Progetti", frecce e card) — solo da tablet in su */
.projects-block-offset {
  position: relative;
  left: 0;
}

@media (min-width: 768px) {
  .projects-block-offset {
    left: 4rem;
  }
}

@media (min-width: 1024px) {
  .projects-block-offset {
    left: 12rem;
  }
}

.projects-scroll {
  scrollbar-width: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

/* Card progetto: animazione quando è l'elemento principale */
.project-slide {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.project-slide.project-slide-active {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.project-slide:nth-child(odd).project-slide-active {
  transform: translateY(0) scale(1.02);
}

.project-slide:nth-child(even).project-slide-active {
  transform: translateY(3rem) scale(1.02);
}

@media (min-width: 768px) {
  .project-slide:nth-child(even).project-slide-active {
    transform: translateY(4rem) scale(1.02);
  }
}

/* Card overlay gradiente beige/oro (News e Progetti) */
.news-card-gradient,
.card-gradient {
  background: linear-gradient(to top,
      rgba(197, 168, 118, 0.95) 0%,
      rgba(197, 168, 118, 0.6) 40%,
      rgba(0, 0, 0, 0) 75%);
}

/* News: carousel centrato nella sezione (rimosso offset destra) */
.news-carousel-wrap {
  max-width: 100%;
}

.news-carousel {
  scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

/* Frecce progetti: forza bianco sulle icone PNG */
.projects-arrow-white {
  filter: brightness(0) invert(1);
}

/* About section (O nama) - come immagine Delta: due colonne, pattern geometrico a destra */
.about-section-reveal.reveal {
  opacity: 1;
  transform: none;
}

/* Stagger: colonna sinistra (label, titolo, pulsante) */
.about-section-reveal .about-content .about-reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-section-reveal.revealed .about-content .about-reveal-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.about-section-reveal.revealed .about-content .about-reveal-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.about-section-reveal.revealed .about-content .about-reveal-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

/* Titolo: comparsa da sinistra (da fuori schermo), lenta e fluida */
.about-section-reveal .about-content .about-title-slide {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s ease-out 0.2s, transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.about-section-reveal.revealed .about-content .about-title-slide {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s, 0.15s;
}

/* Pulsante Scopri di più: stessa animazione da sinistra, lenta e fluida */
.about-section-reveal .about-content .about-cta-slide {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s ease-out 0.2s, transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.about-section-reveal.revealed .about-content .about-cta-slide {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s, 0.35s;
}

/* Stagger: colonna destra (tagline, paragrafo) – comparsa da sotto */
.about-section-reveal .about-right-col .about-reveal-item {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-section-reveal.revealed .about-right-col .about-reveal-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.about-section-reveal.revealed .about-right-col .about-reveal-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Colonna destra: slide da destra (solo movimento, pattern visibile subito) */
.about-section-reveal .about-visual-reveal {
  transform: translateX(60px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.05s;
}

.about-section-reveal.revealed .about-visual-reveal {
  transform: translateX(0);
  transition-delay: 0.1s;
}

/* Colonna destra: nessuno sfondo grigio, solo bianco */
.about-pattern {
  display: none;
}

/* Pulsante CTA: hover icon come il resto */
.about-cta-btn:hover .about-cta-icon {
  border-color: #e85d04;
  color: #e85d04;
}

@media (min-width: 1024px) {
  .about-section .about-section-inner .grid {
    align-items: center;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown: visibilità (Tailwind group-hover gestisce il resto; mobile usa JS) */
@media (min-width: 1025px) {
  .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  }

  .nav-item.group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-item.open .nav-dropdown {
    max-height: 400px;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Navbar polish: spaziature, micro-interazioni e sticky state più elegante */
.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.brand-link {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.nav-desktop {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.3rem;
  backdrop-filter: saturate(140%) blur(6px);
}

.nav-link-desktop {
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.nav-link-desktop::after {
  content: '';
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e85d04, #f48c06);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-link-desktop:hover {
  transform: translateY(-1px);
  background-color: rgba(232, 93, 4, 0.06);
}

.nav-link-desktop:hover::after {
  transform: scaleX(1);
}

.dropdown-arrow {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-item.group:hover .dropdown-arrow {
  opacity: 1;
}

.nav-dropdown>div {
  border-radius: 0.9rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
}

.nav-mobile-panel {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.nav-link-mobile {
  border-radius: 0.6rem;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link-mobile:hover {
  color: #e85d04;
  background-color: rgba(232, 93, 4, 0.08);
  transform: translateX(2px);
}

.nav-overlay {
  backdrop-filter: blur(2px);
}

@media (min-width: 1024px) {
  .site-header .max-w-\[1400px\] {
    height: 76px;
  }
}

/* Navbar in stile progetto Holding */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled,
.navbar.is-open {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.navbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #0f172a;
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.12);
  color: #e85d04;
}

.logo-text {
  font-weight: 700;
  font-size: 0.98rem;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.nav-main .nav-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  padding: 0.58rem 0.92rem;
  border-radius: 0.6rem;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-main .nav-link:hover {
  color: #e85d04;
  background: rgba(232, 93, 4, 0.08);
  transform: translateY(-1px);
}

.nav-main .nav-link.is-active {
  color: #e85d04;
  background: rgba(232, 93, 4, 0.12);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
}

.McButton {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.McButton b {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #1f2937;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.McButton b:nth-child(1) {
  transform: translateY(-6px);
}

.McButton b:nth-child(2) {
  transform: translateY(0);
}

.McButton b:nth-child(3) {
  transform: translateY(6px);
}

.McButton.active b:nth-child(1) {
  transform: rotate(45deg);
}

.McButton.active b:nth-child(2) {
  opacity: 0;
}

.McButton.active b:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-extended {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.35s ease;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.navbar.is-open .nav-extended {
  max-height: 420px;
}

.nav-mobile {
  padding: 1rem 1rem 1.25rem;
}

.nav-mobile-media {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.1) 0%, rgba(232, 93, 4, 0.03) 100%);
}

.nav-mobile-text {
  color: #334155;
  font-size: 0.93rem;
  line-height: 1.55;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  padding: 0.78rem 0.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-mobile-link:hover {
  color: #e85d04;
}

@media (min-width: 1024px) {
  .nav-main {
    display: inline-flex;
  }

  .McButton {
    display: none;
  }

  .nav-extended {
    display: none;
  }
}

/* Allineamento più fedele al navbar pattern Holding */
.navbar {
  padding: 1.3rem 0;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  color: #ffffff;
}

.navbar--scrolled,
.navbar.is-open {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}

.navbar-inner {
  position: relative;
  z-index: 60;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #e85d04;
  color: #fff;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.nav-main {
  display: none;
}

.nav-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav-link:hover {
  color: #e85d04;
}

.nav-link.is-active {
  color: #e85d04;
}

.McButton {
  width: 1.75rem;
  height: 1.25rem;
  z-index: 60;
}

.McButton b {
  left: 0;
  right: 0;
  border-radius: 9999px;
  background-color: currentColor;
}

.McButton b:nth-child(1) {
  top: 0;
  transform: none;
}

.McButton b:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.McButton b:nth-child(3) {
  bottom: 0;
  transform: none;
}

.McButton.active b:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.McButton.active b:nth-child(2) {
  opacity: 0;
}

.McButton.active b:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-extended {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  max-height: none;
  overflow: visible;
  border-top: 0;
}

.navbar.is-open .nav-extended {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

.nav-mobile {
  width: 100%;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.nav-mobile-links {
  align-items: center;
  gap: 1.25rem;
  transform: translateX(-56px);
}

.nav-mobile-link {
  border-bottom: 0;
  padding: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-mobile-media {
  margin-top: 0.5rem;
  position: relative;
  max-width: 620px;
  transform: translateX(-24px);
  display: none;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.nav-mobile-text {
  position: absolute;
  inset: 1.4rem 1.6rem auto 1.6rem;
  z-index: 1;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 260px;
}

.nav-mobile-image {
  display: block;
  width: 520px;
  max-width: 100%;
  height: 260px;
  border-radius: 1.6rem;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.nav-mobile-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.35));
  pointer-events: none;
}

.navbar-bar {
  display: block;
  width: 100%;
  background: #0a0f1e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.95);
}

.navbar-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-bar .animated-arrow {
  color: inherit;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-bar .animated-arrow .main {
  display: inline-flex;
  align-items: center;
}

.navbar-bar .animated-arrow .text {
  margin-right: 0.5rem;
}

.navbar-bar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.navbar-bar-lang-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
}

.navbar-bar-lang-link.is-active,
.navbar-bar-lang-link:hover {
  opacity: 1;
  color: #fff;
}

.navbar-bar-lang-sep {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .nav-mobile {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-mobile-links {
    align-items: flex-start;
    transform: translateX(-32px);
  }

  .nav-mobile-media {
    display: block;
    transform: translateX(-32px);
    margin-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .navbar {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(226, 232, 240, 0.9);
  }

  .nav-main {
    display: inline-flex;
  }

  .McButton {
    display: none;
  }

  .nav-extended {
    display: none;
  }
}

/* Featured projects: 3 card sovrapposte a destra, più grandi e distanziate */
.featured-projects-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 3rem;
}

.featured-projects-stack-offset {
  margin-left: 2rem;
}

@media (min-width: 768px) {
  .featured-projects-stack-offset {
    margin-left: 3rem;
  }
}

.featured-project-card {
  min-height: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .featured-project-card {
    min-height: 380px;
  }
}

.featured-projects-stack .featured-project-card:not(:first-child) {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .featured-projects-stack .featured-project-card:not(:first-child) {
    margin-top: 1.75rem;
  }
}

.featured-project-arrow {
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.featured-project-card:hover .featured-project-arrow {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

/* Process section: sfondo immagine + overlay per leggibilità */
.process-section-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.process-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.35) 50%, rgba(15, 23, 42, 0.25) 100%);
  z-index: 0;
}

#featured-projects.process-section {
  padding: 5rem 0;
}

.process-container {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .process-container {
    flex-direction: row;
    gap: 5rem;
  }
}

/* Colonna sinistra: testo più a sinistra, fisso al 20% dall'alto */
.process-text {
  flex: 1;
  min-width: 0;
  margin-left: 0;
}

@media (min-width: 768px) {
  .process-text {
    margin-left: -2rem;
  }
}

@media (min-width: 1024px) {
  .process-text {
    margin-left: -3.5rem;
  }
}

.sticky-text {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .sticky-text {
    position: sticky;
    top: calc(20% - 20px);
    padding-left: 0;
  }
}

#featured-projects .process-title {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
  text-wrap: balance;
}

@media (min-width: 480px) {
  #featured-projects .process-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 768px) {
  #featured-projects .process-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  #featured-projects .process-title {
    font-size: 4rem;
  }
}

@media (min-width: 1280px) {
  #featured-projects .process-title {
    font-size: 4.5rem;
  }
}

#featured-projects .process-desc {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  max-width: 42ch;
  margin-bottom: 0;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  #featured-projects .process-desc {
    font-size: 1.15rem;
  }
}

/* Colonna destra: card che scorrono */
.process-visuals {
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .process-visuals {
    flex: 1.2;
  }
}

.progress-line-wrap {
  width: 4px;
  height: 120px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .progress-line-wrap {
    height: 180px;
  }
}

.progress-line {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #e85d04, #d45103);
  border-radius: 4px;
  transition: height 0.12s ease-out;
}

/* Process section (solo se usata altrove): immagini + box */
.process-section {
  position: relative;
}

.process-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .process-container {
    flex-direction: row;
    gap: 5rem;
  }
}

.process-text {
  flex: 1;
  min-width: 0;
}

.process-visuals {
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .process-visuals {
    flex: 1.2;
  }
}

.image-box {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

.image-box:last-child {
  margin-bottom: 0;
}

.image-box img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.image-box span {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #374151;
}

@media (min-width: 768px) {
  .image-box span {
    font-size: 1.5rem;
  }
}

/* Footer polish: gerarchia più chiara, colonne allineate e social icon moderna */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.site-footer h4 {
  letter-spacing: 0.18em;
  position: relative;
  margin-bottom: 1.1rem;
}

.site-footer h4::after {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: rgba(232, 93, 4, 0.9);
}

.footer-grid {
  column-gap: 3rem;
  row-gap: 2rem;
}

.footer-col {
  position: relative;
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::before {
  content: '';
  width: 0;
  height: 1px;
  margin-right: 0;
  background: rgba(232, 93, 4, 0.9);
  transition: width 0.25s ease, margin-right 0.25s ease;
}

.footer-link:hover {
  transform: translateX(2px);
}

.footer-link:hover::before {
  width: 12px;
  margin-right: 6px;
}

.footer-social-icon {
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 4, 0.8);
  background-color: rgba(232, 93, 4, 0.14);
}

.site-footer .border-t {
  border-top-color: rgba(148, 163, 184, 0.25);
}

@media (min-width: 1024px) {
  .footer-col:not(:first-child) {
    padding-left: 1.2rem;
  }

  .footer-col:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: rgba(148, 163, 184, 0.18);
  }
}

/* Nuove pagine interne: hero coerente e ritmo verticale uniforme */
.inner-hero {
  position: relative;
  overflow: hidden;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(232, 93, 4, 0.16) 0%, rgba(232, 93, 4, 0) 45%);
  pointer-events: none;
}

/* Progetti: stato filtro attivo in linea con token primary */
.projects-filter-btn {
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.projects-filter-btn:hover {
  transform: translateY(-1px);
}

.projects-filter-btn.is-active {
  color: #fff;
  border-color: #e85d04;
  background-color: #e85d04;
  box-shadow: 0 10px 20px rgba(232, 93, 4, 0.25);
}

.project-grid-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

/* ===== Navbar replica Eretum holding ===== */
:root {
  --primary: #e85d04;
  --navy-900: #0f172a;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --navbar-height: 72px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.3rem 0;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.navbar--scrolled,
.navbar.is-open {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--slate-200);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: var(--navy-900);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 60;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 62vw;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .logo-img {
    height: 44px;
    max-width: none;
    transform: scale(1.55);
    transform-origin: left center;
  }
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.25);
}

.logo-text {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.nav-main {
  display: none;
}

.nav-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.McButton {
  position: relative;
  display: inline-flex;
  width: 1.75rem;
  /* ~28px */
  height: 1.25rem;
  /* ~20px */
  cursor: pointer;
  color: inherit;
  z-index: 60;
  /* resta sempre visibile sopra il pannello menu */
}

.McButton b {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 9999px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, bottom 0.3s ease;
}

.McButton b:nth-child(1) {
  top: 0;
}

.McButton b:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.McButton b:nth-child(3) {
  bottom: 0;
}

.McButton.active b:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.McButton.active b:nth-child(2) {
  opacity: 0;
}

.McButton.active b:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-extended {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.navbar.is-open .nav-extended {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

.nav-mobile {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transform: translateX(-56px);
}

.nav-mobile-link {
  color: var(--navy-900);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-mobile-link::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--primary);
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-mobile-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.nav-mobile-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-mobile-media {
  margin-top: 0.5rem;
  position: relative;
  max-width: 620px;
  transform: translateX(-24px);
  display: none;
}

.nav-mobile-text {
  position: absolute;
  inset: 1.4rem 1.6rem auto 1.6rem;
  z-index: 1;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 260px;
}

.nav-mobile-image {
  display: block;
  width: 520px;
  max-width: 100%;
  height: 260px;
  border-radius: 1.6rem;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.nav-mobile-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.35));
  pointer-events: none;
}

.navbar-bar {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #0a0f1e, #111b2f);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.95);
}

.navbar-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  gap: 1rem;
}

.animated-arrow {
  color: inherit;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.animated-arrow .main {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.animated-arrow .text {
  margin-right: 0.6rem;
}

.animated-arrow:hover .main {
  transform: translateX(6px);
}

.navbar-bar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.9);
  padding: 0.25rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-bar-lang-flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

.navbar-bar-lang-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: 9999px;
}

.navbar-bar-lang-link:hover,
.navbar-bar-lang-link.is-active {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.navbar-bar-lang-sep {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .nav-mobile {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-mobile-links {
    align-items: flex-start;
    transform: translateX(-32px);
  }

  .nav-mobile-media {
    margin-right: 3rem;
    transform: translateX(-32px);
    display: block;
  }
}

/* desktop: links desktop presenti in markup ma hidden come nella reference */
@media (min-width: 1024px) {
  .nav-main {
    display: none;
  }
}

/* Navbar sempre con sfondo bianco (in ogni stato di scroll) */
.navbar.site-header,
.navbar.site-header:not(.navbar--scrolled):not(.is-open) {
  background: #ffffff !important;
  border-bottom-color: var(--slate-200) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  color: var(--navy-900) !important;
}

/* ===== Footer + Contattaci stile reference (tema arancione) ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Sezione contatti separata */
.footer-contacts-section {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.footer-contacts-title {
  color: var(--navy-900);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 3.5rem;
}

.footer-logo .logo-img {
  height: 48px;
  width: auto;
  max-width: 72vw;
}

@media (min-width: 1024px) {
  .footer-logo .logo-img {
    height: 56px;
    max-width: none;
    transform: scale(1.5);
    transform-origin: left center;
  }
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-logo-text {
  color: var(--navy-900);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h5 {
  color: var(--navy-900);
  font-weight: 700;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col a {
  color: var(--slate-500);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

/* ===== Footer Contatti - Semplice e pulito ===== */
.footer-col--contact {
  padding: 0.5rem 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e85d04;
}

.footer-contact-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}

.footer-contact-pin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.footer-contact-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.footer-contact-mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

.footer-contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.footer-contact-value,
.footer-contact-mails {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
}

.footer-contact-address {
  display: block;
  white-space: pre-line;
}

.footer-address-part {
  display: block;
}

.footer-address-sep {
  display: none;
}

.footer-contact-phone-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-contact-phone-name {
  font-weight: 600;
  color: #0f172a;
}

.footer-contact-phone-sep::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.footer-contact-mails {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact-link {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.footer-contact-link:hover {
  color: #e85d04;
}

.footer-contact-phone-link {
  font-weight: 600;
  color: #0f172a;
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 0;
  white-space: nowrap;
}

.footer-bottom .footer-powered {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom .footer-powered:hover {
  color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.cookie-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-decline {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 3.5rem 0;
}

.newsletter-inner {
  position: relative;
  background: var(--primary);
  border-radius: 1.75rem;
  padding: 4.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .newsletter-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.4rem 3.2rem;
  }
}

.newsletter-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
  filter: blur(48px);
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .newsletter-content {
    width: 72%;
  }
}

.newsletter-title {
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .newsletter-title {
    font-size: 2.35rem;
  }
}

.newsletter-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.btn-newsletter {
  height: 3.4rem;
  padding: 0 2rem;
  white-space: nowrap;
  margin-top: 0.85rem;
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--white);
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-newsletter:hover,
.btn-newsletter:focus,
.btn-newsletter:active {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .btn-newsletter {
    margin-top: 0;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
  }
}

/* --- Pagine legali (Privacy / Cookie) --- */
.legal-hero-grid {
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0.88)),
    repeating-linear-gradient(-12deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.02) 40px,
      rgba(255, 255, 255, 0.02) 41px);
}

.legal-article .legal-section:last-of-type .legal-section-body {
  margin-bottom: 0;
}

.legal-section-body a {
  color: #e85d04;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section-body a:hover {
  color: #d45103;
}

/* Prima sezione (es. Titolare del trattamento): corpo testo a tutta larghezza card */
.legal-section-body--wide {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-right: 0.5rem;
}

@media (min-width: 1024px) {
  .legal-section-body--wide {
    padding-right: 1.5rem;
  }
}