:root {
  color-scheme: light;
  --vierre-header-h: 5rem;
  --vierre-nav-logo-h: 4.375rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--vierre-header-h) + env(safe-area-inset-top, 0px));
  overflow-x: clip;
}

html[data-vierre-hash-load] {
  background: #ffffff;
}

html[data-vierre-hash-load] body {
  opacity: 0;
}

body {
  font-family: "Montserrat", sans-serif;
}

h1,
h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a,
button,
[role="button"],
input,
select,
textarea {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f2b705;
}

.vierre-skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 999;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #0f1e33;
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: top 0.2s ease;
}

.vierre-skip-link:focus {
  top: 0.5rem;
}

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#site-header > div {
  align-items: center;
  min-height: var(--vierre-header-h);
  padding-top: calc(0.375rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.375rem;
}

#site-header a[aria-label*="Vierre Traslochi"],
#site-header a[aria-label*="home di Vierre"] {
  display: flex;
  align-items: center;
  align-self: stretch;
  line-height: 0;
}

#site-header #logo-light,
#site-header #logo-dark {
  height: var(--vierre-nav-logo-h);
  max-height: calc(var(--vierre-header-h) - 0.5rem);
  width: auto;
  max-width: min(68vw, 20rem);
  object-fit: contain;
  object-position: left center;
}

#site-header #logo-light.hidden,
#site-header #logo-dark.hidden {
  display: none !important;
}

#site-header #logo-light:not(.hidden),
#site-header #logo-dark:not(.hidden) {
  display: block;
}

@media (min-width: 769px) {
  :root {
    --vierre-header-h: 5.125rem;
    --vierre-nav-logo-h: 4.625rem;
  }

  #site-header #logo-light,
  #site-header #logo-dark {
    max-width: min(72vw, 19.5rem);
  }
}

@media (min-width: 1024px) {
  :root {
    --vierre-header-h: 6rem;
    --vierre-nav-logo-h: 5.25rem;
  }

  #site-header > div {
    padding-top: calc(0.625rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.625rem;
  }

  #site-header #logo-light,
  #site-header #logo-dark {
    max-height: calc(var(--vierre-header-h) - 0.625rem);
    max-width: 21.5rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --vierre-nav-logo-h: 5.375rem;
  }

  #site-header > div {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
  }
}

#site-header.nav-scrolled {
  background: rgba(243, 244, 246, 0.97) !important;
  border-color: rgba(15, 30, 51, 0.12) !important;
  box-shadow: 0 2px 12px rgba(15, 30, 51, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#site-header:not(.nav-scrolled) {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#site-header .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  color: #f9fafb;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.035em;
  transition: color 0.2s ease;
}

#site-header.nav-scrolled .nav-link {
  color: #0f1e33;
}

#site-header .nav-link:hover {
  color: #f2b705;
}

#site-header #mobile-menu-button {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

#site-header #mobile-menu-button svg {
  pointer-events: none;
}

#site-header.nav-scrolled #mobile-menu-button {
  color: #0f1e33 !important;
  border-color: rgba(15, 30, 51, 0.28) !important;
}

#site-header.nav-scrolled #mobile-menu-button:hover {
  border-color: rgba(242, 183, 5, 0.65) !important;
  color: #d91e24 !important;
}

body.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu.vierre-mobile-panel {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

#mobile-menu.vierre-mobile-panel .vierre-mobile-nav > a:not(.vierre-mobile-nav-cta) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

#mobile-menu.vierre-mobile-panel .vierre-mobile-nav > a:not(.vierre-mobile-nav-cta):hover,
#mobile-menu.vierre-mobile-panel .vierre-mobile-nav > a:not(.vierre-mobile-nav-cta):focus-visible {
  background-color: rgba(255, 255, 255, 0.07);
  outline: none;
}

#mobile-menu.vierre-mobile-panel .vierre-mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1023px) {
  #site-header #mobile-menu-button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px;
    color: inherit;
  }

  #site-header:not(.nav-scrolled) #mobile-menu-button {
    color: #fff !important;
  }

  #site-header #mobile-menu-button svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  #site-header #mobile-menu-button svg * {
    stroke-width: 1.35px;
  }

  #site-header.nav-scrolled #mobile-menu-button {
    border: none !important;
    color: #0f1e33 !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #d91e24;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(217, 30, 36, 0.35);
}

.btn-primary:hover {
  background: #bf171c;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  border: 1px solid #0f1e33;
  color: #0f1e33;
  background: #ffffff;
}

.btn-outline-dark:hover {
  background: #0f1e33;
  color: #ffffff;
}

.btn-outline-rosso {
  border: 1px solid #d91e24;
  color: #d91e24;
  background: transparent;
}

.btn-outline-rosso:hover {
  background: #d91e24;
  color: #ffffff;
}

/* --- HERO --- */
.hero-bg {
  background: #0f1e33;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .hero-bg__shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100svh - var(--vierre-header-h));
    padding-top: calc(var(--vierre-header-h) + 0.75rem);
    padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  .page-home .index-hero-title {
    font-size: clamp(4rem, 4.8vw, 4.375rem);
  }

  .page-home .index-hero-stack {
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .hero-bg__shell {
    padding-top: calc(var(--vierre-header-h) + 0.5rem);
    padding-bottom: 1.25rem;
  }

  .index-hero-stack .index-hero-lead {
    margin-top: 1.5rem;
  }

  .index-hero-stack .index-hero-ctas {
    margin-top: 2rem;
  }

  .index-hero-stack .index-hero-trust {
    margin-top: 2.25rem;
    gap: 1rem;
  }

  .hero-floating-card {
    bottom: clamp(1.5rem, 5vh, 3rem);
  }
}

@media (min-width: 1024px) and (max-height: 768px) {
  .hero-bg__shell {
    padding-top: calc(var(--vierre-header-h) + 0.25rem);
    padding-bottom: 1rem;
  }

  .index-hero-stack .index-hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  }

  .index-hero-stack .index-hero-lead {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .index-hero-stack .index-hero-ctas {
    margin-top: 1.5rem;
  }

  .index-hero-stack .index-hero-trust {
    margin-top: 2rem;
    gap: 0.75rem;
  }

  .index-hero-trust li {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .index-hero-trust li svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .hero-floating-card {
    bottom: 1.25rem;
    padding: 1.35rem 1.65rem;
    gap: 0.75rem;
  }
}

.hero-bg > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }
}

@media (max-width: 1023px) {
  .hero-bg {
    min-height: auto;
    background-color: #0f1e33;
    background-image: none;
  }

  .hero-bg__shell {
    position: relative;
    z-index: 1;
  }

  .index-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .index-hero-ctas {
    align-items: center;
    width: 100%;
  }

  .index-hero-ctas .btn {
    width: min(100%, 20rem);
    justify-content: center;
  }

  .index-hero-lead {
    line-height: 1.45;
  }

  .index-hero-trust {
    justify-content: center;
    gap: 0.375rem;
  }

  .index-hero-trust li {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .index-hero-trust li svg {
    width: 0.875rem;
    height: 0.875rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .index-hero-trust li {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }

  .index-hero-trust li svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.038;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.hero-bg .hero-seq {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg .index-hero-title.hero-seq {
  transform: scale(0.9);
}

.hero-bg .index-hero-title.hero-seq.show {
  opacity: 1;
  transform: scale(1);
}

.hero-bg .index-hero-lead.hero-seq {
  transform: translateX(-80px);
}

.hero-bg .index-hero-lead.hero-seq.show {
  opacity: 1;
  transform: translateX(0);
}

.hero-bg .index-hero-ctas.hero-seq,
.hero-bg .index-hero-badge.hero-seq,
.hero-bg .index-hero-mobile-photo.hero-seq,
.hero-bg .index-hero-trust.hero-seq {
  transform: scale(0.92) translateY(18px);
}

.hero-bg .index-hero-ctas.hero-seq.show,
.hero-bg .index-hero-badge.hero-seq.show,
.hero-bg .index-hero-mobile-photo.hero-seq.show,
.hero-bg .index-hero-trust.hero-seq.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-bg .hero-floating-card.hero-seq {
  transform: translateY(24px);
}

.hero-bg .hero-floating-card.hero-seq.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .hero-bg .index-hero-lead.hero-seq {
    transform: translateY(18px);
  }

  .hero-bg .index-hero-lead.hero-seq.show {
    transform: translateY(0);
  }
}

.hero-floating-card {
  position: absolute;
  right: clamp(2rem, 6vw, 8rem);
  bottom: clamp(3rem, 8vh, 7rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 30, 51, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
  z-index: 10;
}

/* --- HERO SECONDARIA (pagine interne) --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .page-hero {
    min-height: 52vh;
  }
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 30, 51, 0.32) 0%,
    rgba(15, 30, 51, 0.58) 100%
  );
  z-index: -1;
}

.page-hero__inner {
  padding-top: 7rem;
  padding-bottom: 3rem;
  text-align: center;
}

#site-header .nav-link.is-active {
  color: #f2b705;
}

#site-header.nav-scrolled .nav-link.is-active {
  color: #d91e24;
}

/* --- DETTAGLIO SERVIZI (servizi.html) --- */
.service-detail {
  scroll-margin-top: 6.5rem;
}

.service-detail__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.service-detail__media img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 36px rgba(15, 30, 51, 0.12);
}

.service-detail__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.service-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(217, 30, 36, 0.1);
  color: #d91e24;
  flex-shrink: 0;
}

.service-detail__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-detail__title {
  margin: 0;
  color: #0f1e33;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.service-detail__body {
  margin-top: 1.25rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
}

.service-detail__includes {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1.1rem 1.15rem;
}

.service-detail__includes h3 {
  margin: 0;
  color: #0f1e33;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-detail__includes ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.service-detail__includes li {
  position: relative;
  padding-left: 1.45rem;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.service-detail__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #f2b705;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.22);
}

.service-detail__cta {
  margin-top: 1.75rem;
}

@media (max-width: 1023px) {
  .service-detail__grid {
    display: flex;
    flex-direction: column;
  }

  .service-detail__content {
    display: contents;
  }

  .service-detail__head {
    order: 1;
  }

  .service-detail__media {
    order: 2;
  }

  .service-detail__body {
    order: 3;
  }

  .service-detail__includes {
    order: 4;
  }

  .service-detail__cta {
    order: 5;
  }
}

@media (min-width: 1024px) {
  .service-detail__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .service-detail--reverse .service-detail__media {
    order: 2;
  }

  .service-detail--reverse .service-detail__content {
    order: 1;
  }
}

/* --- CHI SIAMO --- */
.process-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.values-grid {
  display: grid;
  gap: 1.25rem;
}

.value-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 6px 22px rgba(15, 30, 51, 0.06);
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(217, 30, 36, 0.1);
  color: #d91e24;
}

.value-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.value-card h3 {
  margin: 0.9rem 0 0;
  color: #0f1e33;
  font-size: 1.05rem;
  font-weight: 800;
}

.value-card p {
  margin: 0.55rem 0 0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.55;
}

.stats-bar {
  background: #0f1e33;
  color: #ffffff;
}

.stats-bar__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

@media (max-width: 639px) {
  .stats-bar__item strong {
    font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  }

  .stats-bar__item > span {
    font-size: 0.6875rem;
    line-height: 1.25;
  }
}

.stats-bar__item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14em;
  color: #f2b705;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stats-bar__star {
  display: inline;
  color: #f2b705;
  font-size: 0.88em;
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(-0.04em);
}

.stats-bar__item > span {
  display: block;
  margin-top: 0.45rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

/* --- CONTATTI --- */
.contact-cards {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 28px rgba(15, 30, 51, 0.08);
  height: 100%;
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(217, 30, 36, 0.1);
  color: #d91e24;
}

.contact-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card h2 {
  margin: 0.9rem 0 0;
  color: #0f1e33;
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-card p {
  margin: 0.65rem 0 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-card__action {
  margin-top: 1.25rem;
}

.contact-info-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-info-list svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #d91e24;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-info-list a {
  color: #0f1e33;
  font-weight: 600;
}

.contact-info-list a:hover {
  color: #d91e24;
}

.contact-cta-panel {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 22px rgba(15, 30, 51, 0.06);
}

.contact-cta-panel h2 {
  margin: 0;
  color: #0f1e33;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.contact-cta-panel p {
  margin: 0.65rem auto 0;
  max-width: 36rem;
  color: #334155;
  font-size: 0.97rem;
  line-height: 1.55;
}

.contact-cta-panel__actions {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 30, 51, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: #0f1e33;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 1rem 1.1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: #d91e24;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: #f8fafc;
}

.faq-item__answer {
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 0.85rem 1.1rem 1.1rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cta-panel__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .stats-bar__grid {
    gap: 1.5rem;
  }

  .stats-bar__item > span {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 260px;
  isolation: isolate;
}

.service-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 30, 51, 0.06);
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-overlay {
  background: rgba(15, 30, 51, 0.1);
}

.service-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 30, 51, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 8px 18px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.125rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card.card-large .service-badge {
  gap: 0.625rem;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

.service-card:hover .service-badge {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.service-card:not(.card-large):hover .service-badge {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.service-badge svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #f2b705;
}

.service-card.card-large .service-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .service-badge {
    font-size: 0.9375rem;
    padding: 0.7rem 1.25rem;
  }

  .service-badge svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .service-card.card-large .service-badge {
    font-size: 1.125rem;
    padding: 0.875rem 1.75rem;
  }

  .service-card.card-large .service-badge svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.feature-rich-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 1rem;
}

.feature-rich-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(217, 30, 36, 0.1);
  color: #d91e24;
}

.feature-rich-icon svg {
  width: 1rem;
  height: 1rem;
}

.feature-rich-item h3 {
  margin: 0;
  color: #0f1e33;
  font-size: 1rem;
  font-weight: 800;
}

.feature-rich-item p {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.93rem;
  line-height: 1.5;
}

.vierre-cta-band {
  width: 100%;
  background: linear-gradient(120deg, #0f1e33 0%, #142a45 42%, #b81920 100%);
  padding: 4.5rem 0;
}

.vierre-cta-band__inner {
  width: 100%;
}

@media (min-width: 640px) {
  .vierre-cta-band {
    padding: 5.5rem 0;
  }
}

@media (min-width: 1024px) {
  .vierre-cta-band {
    padding: 6.5rem 0;
  }
}

.vierre-why-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f1e33;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
  min-height: 18rem;
}

.vierre-why-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 640px) {
  .vierre-why-image {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 1024px) {
  .vierre-why-image-wrap {
    min-height: 100%;
    height: 100%;
  }

  .vierre-why-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 28rem;
  }
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f1e33;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 0.35rem 0.78rem;
}

.micro-badge svg {
  width: 14px;
  height: 14px;
  color: #d91e24;
}

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(15, 30, 51, 0.06);
}

.review-card h3 {
  color: #0f1e33;
  font-size: 1.02rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.review-card p {
  margin-top: 0.6rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.stars {
  color: #f2b705;
  letter-spacing: 0.1em;
}

.google-source {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
}

.footer-list a {
  color: #cbd5e1;
}

.footer-list a:hover {
  color: #f2b705;
}

.vierre-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(15, 30, 51, 0.96);
  box-shadow: 0 20px 40px rgba(11, 11, 11, 0.35);
  padding: 0.9rem 1rem;
}

/* Footer logo */
.vierre-footer-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 4rem;
  max-width: 13rem;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.18);
  transform-origin: left center;
}

/* --- Home mobile (index) --- */
@media (max-width: 767px) {
  .page-home .bento-grid .service-card {
    height: 11.5rem;
    min-height: 11.5rem;
  }

  .page-home .bento-grid .service-card.card-large {
    grid-column: auto;
    min-height: 11.5rem;
    height: 11.5rem;
  }

  .page-home .bento-grid .service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .vierre-why-badges .micro-badge {
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .page-home .vierre-why-badges .micro-badge svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .vierre-footer-grid {
    text-align: center;
  }

  .vierre-footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vierre-footer-grid .footer-title,
  .vierre-footer-grid .footer-list {
    width: 100%;
    text-align: center;
  }

  .vierre-footer-grid .footer-list li {
    text-align: center;
  }

  .vierre-footer-brand {
    align-items: center;
  }

  .vierre-footer-logo {
    height: auto;
    width: auto;
    max-height: 4.5rem;
    max-width: 14rem;
    margin-inline: auto;
    transform: scale(1.12);
    transform-origin: center center;
  }

  .vierre-footer-tagline {
    max-width: 22rem;
    margin-inline: auto;
    text-align: center;
  }

  .vierre-footer-bottom {
    align-items: center;
    text-align: center;
  }

  .vierre-footer-bottom > p {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(210px, 1fr);
  }

  .service-card {
    min-height: 230px;
  }

  .card-large {
    grid-column: span 2;
    min-height: 280px;
  }
}

.hero-bg .hero-seq-1 { transition-delay: 0.18s; }
.hero-bg .hero-seq-2 { transition-delay: 0.86s; }
.hero-bg .hero-seq-3 { transition-delay: 1.54s; }
.hero-bg .hero-seq-4 { transition-delay: 2.22s; }
.hero-bg .hero-seq-5 { transition-delay: 2.9s; }
.hero-bg .hero-seq-6 { transition-delay: 3.58s; }
.hero-bg .hero-seq-7 { transition-delay: 4.26s; }

@media (min-width: 1024px) {
  .hero-bg .index-hero-trust.hero-seq-6 {
    transition-delay: 2.9s;
  }

  .hero-bg .hero-floating-card.hero-seq-7 {
    transition-delay: 3.58s;
  }
}

@media (max-width: 767px) {
  .vierre-cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .vierre-cookie-banner .btn {
    width: 100%;
  }
}

/* --- PAGINE LEGALI --- */
body.legal-page #site-header {
  background: rgba(243, 244, 246, 0.97) !important;
  border-color: rgba(15, 30, 51, 0.12) !important;
  box-shadow: 0 2px 12px rgba(15, 30, 51, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.legal-page #site-header .nav-link {
  color: #0f1e33;
}

body.legal-page #site-header .nav-link:hover {
  color: #f2b705;
}

body.legal-page #logo-light {
  display: none !important;
}

body.legal-page #logo-dark {
  display: block !important;
}

body.legal-page #site-header #mobile-menu-button {
  color: #0f1e33 !important;
  border-color: rgba(15, 30, 51, 0.28) !important;
}

.legal-page-main {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.legal-document {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 32px rgba(15, 30, 51, 0.08);
}

.legal-document h1 {
  margin: 0;
  color: #0f1e33;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.legal-document__updated {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.875rem;
}

.legal-document section {
  margin-top: 2.5rem;
}

.legal-document h2 {
  margin: 0;
  color: #0f1e33;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.legal-document p,
.legal-document li {
  color: #334155;
  font-size: 0.97rem;
  line-height: 1.65;
}

.legal-document p {
  margin: 1rem 0 0;
}

.legal-document ul {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.legal-document ul li + li {
  margin-top: 0.5rem;
}

.legal-document a {
  color: #d91e24;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-document a:hover {
  color: #0f1e33;
}

.legal-document code {
  border-radius: 0.35rem;
  background: #f1f5f9;
  padding: 0.1rem 0.4rem;
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .legal-document {
    padding: 2.5rem 2.25rem;
  }
}

@media (min-width: 768px) {
  .legal-page-main {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .legal-document {
    padding: 3rem;
  }
}

.vierre-error-page {
  display: flex;
  min-height: calc(100svh - 5rem);
  align-items: center;
  justify-content: center;
  padding: 7rem 1rem 4rem;
  text-align: center;
}

.vierre-error-page__code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d91e24;
}

.vierre-error-page h1 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f1e33;
}

.vierre-error-page p {
  margin-top: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.vierre-error-page__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .vierre-error-page__actions {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg .hero-seq,
  .hero-bg .index-hero-stack,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
