/* =======================================
   DOMUS ARS – STILE MODERNO FULL-WIDTH
   FONT: Montserrat (titoli) + Inter (testo)
   ======================================= */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700&display=swap');

/* ---------- VARIABILI ---------- */
:root {
  --col-primary:       #355461;
  --col-primary-dark:  #355461;
  --col-secondary:     #6DA3BB;
  --col-sky:           #C4D7DF;
  --col-sky-rgb:       196 215 223;
  --col-bg:            #F2F6F8;
  --col-soft:          #a89c93;
  --col-surface:       #F2F6F8;
  --col-text:          #111827;
  --col-text-soft:     #6b7a86;
  --col-border:        rgba(15, 23, 42, 0.10);
  --col-border-soft:   rgba(15, 23, 42, 0.06);
  --seller-dark:       #355461;
  --seller-dark-rgb:   53 84 97;
  --seller-dark-deep:  #273a45;
  --seller-dark-deep-rgb: 39 58 69;
  --buyer-pink:        #b0afae;
  --buyer-pink-rgb:    177 156 140;
  --buyer-pink-deep:   #8d8d8d;
  --buyer-ink:         #355461;

  --radius-lg:         24px;
  --radius-md:         16px;
  --shadow-soft:       0 30px 80px rgba(15, 23, 42, 0.18);
  --shadow-card:       0 18px 46px rgba(15, 23, 42, 0.12);
  --shadow-float:      0 36px 90px rgba(15, 23, 42, 0.16);

  --transition-fast:   0.22s ease-out;
}

/* ---------- RESET + BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgb(var(--col-sky-rgb) / 0.35), transparent 45%),
    radial-gradient(circle at 85% 5%, rgb(var(--buyer-pink-rgb) / 0.28), transparent 48%),
    linear-gradient(180deg, var(--col-bg) 0%, var(--col-bg) 55%, var(--col-sky) 100%);
  color: var(--col-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.main-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  background: transparent;
}

section {
  width: 100%;
  padding: 80px clamp(24px, 6vw, 80px);
  position: relative;
}

section > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* =======================================
   HEADER – bianco fisso
   ======================================= */

.header-hero {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header-hero.is-solid {
  background: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  --logo-scale: 1;
  --logo-offset-y: 0px;
  height: clamp(34px, 4vw, 44px);
  width: clamp(120px, 16vw, 180px);
  object-fit: contain;
  transform: translateY(var(--logo-offset-y)) scale(var(--logo-scale));
  transform-origin: left center;
  display: block;
}

.header-hero-animate .header-logo img {
  opacity: 0;
  transform: translateY(calc(var(--logo-offset-y) + 6px)) scale(var(--logo-scale));
  animation: logoFadeIn 0.8s ease-out 0.12s forwards;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(var(--logo-offset-y)) scale(var(--logo-scale));
  }
}

@keyframes sloganLetterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAV + DROPDOWN */

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(53, 84, 97, 0.4);
  border-radius: 999px;
  padding: 6px;
  background: none;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--col-primary);
  display: block;
  transition: transform var(--transition-fast);
}

nav a,
.nav-link-button {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--col-text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

nav a::after,
.nav-link-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--col-primary);
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

nav a:hover,
.nav-link-button:hover {
  color: var(--col-primary);
}

nav a:hover::after,
.nav-link-button:hover::after {
  width: 22px;
}

.header-hero:not(.is-solid) nav > a,
.header-hero:not(.is-solid) nav > .nav-item > .nav-link-button {
  color: rgba(255, 255, 255, 0.92);
}

.header-hero:not(.is-solid) nav > a::after,
.header-hero:not(.is-solid) nav > .nav-item > .nav-link-button::after {
  background: rgba(255, 255, 255, 0.85);
}

.header-hero:not(.is-solid) nav > a:hover,
.header-hero:not(.is-solid) nav > .nav-item > .nav-link-button:hover {
  color: #ffffff;
}

.header-hero.is-solid nav > a,
.header-hero.is-solid nav > .nav-item > .nav-link-button {
  color: var(--col-primary);
}

.header-hero.is-solid nav > a::after,
.header-hero.is-solid nav > .nav-item > .nav-link-button::after {
  background: var(--col-secondary);
}

.header-hero.is-solid nav > a:hover,
.header-hero.is-solid nav > .nav-item > .nav-link-button:hover {
  color: var(--col-secondary);
}

.header-hero:not(.is-solid) .header-logo img {
  --logo-scale: 2;
  --logo-offset-y: 30px;
}

.header-hero:not(.is-solid) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.65);
}

.header-hero:not(.is-solid) .nav-toggle-line {
  background: #ffffff;
}

.header-hero.is-solid .nav-toggle {
  border-color: rgba(53, 84, 97, 0.65);
}

.header-hero.is-solid .nav-toggle-line {
  background: var(--col-primary);
}

.header-hero .header-cta .btn-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.header-hero .header-cta .btn-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3);
}

.nav-item {
  position: relative;
}

.nav-has-dropdown {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 190px;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out,
    visibility 0.18s ease-out;
  z-index: 50;
}

.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--col-text-soft);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: #f3f6fa;
  color: var(--col-primary);
}

.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* CTA header */

.header-cta {
  margin-left: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--col-border);
  background: #ffffff;
  color: var(--col-primary);
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: var(--transition-fast);
}

.btn-pill::after {
  content: "→";
  font-size: 0.78rem;
  transform: translateX(0);
  transition: transform var(--transition-fast);
}

.btn-pill:hover {
  border-color: var(--col-primary);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
}

.btn-pill:hover::after {
  transform: translateX(3px);
}

/* =======================================
   HERO HOME
   ======================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  background: #0b0f14;
}

.hero > * {
  max-width: none;
  margin: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-video-position, center);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(120px, 12vh, 180px) clamp(24px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
  text-align: left;
}

.hero__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 3vw + 1rem, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__title--secondary {
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, 3.1rem);
  letter-spacing: 0.04em;
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: heroTitleLineLoop 6s ease-in-out infinite;
  animation-delay: var(--line-delay, 0s);
  will-change: transform, opacity;
}

@keyframes heroTitleLineLoop {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  20%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.4rem);
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(10px, 2vh, 20px);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.hero__btn--primary {
  background: var(--col-secondary);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px rgba(15, 23, 42, 0.32);
}

.hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
}

.hero__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
  .hero__content {
    padding: clamp(120px, 12vh, 180px) clamp(20px, 7vw, 32px);
  }

  .hero__cta {
    width: 100%;
    flex-direction: column;
  }

  .hero__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-image: url("../immagini/hero-famiglia.png");
    background-size: cover;
    background-position: center;
  }

  .hero__video {
    display: none;
  }
}

.hero-full {
  position: relative;
  min-height: 90vh;
  padding: 120px clamp(20px, 6vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Cambia il nome del file se diverso */
  background-image: url("../immagini/hero-famiglia.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-video-only {
  padding: clamp(70px, 9vw, 110px) 0 0;
  min-height: auto;
  background: none;
}

.hero-video {
  width: min(1400px, 100%);
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  background: var(--col-primary);
  margin: 0 auto;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  text-align: left;
  padding: 0 clamp(24px, 6vw, 96px);
}

.hero-video-overlay span {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 2.4vw + 0.8rem, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--seller-dark);
  text-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  padding: 0.45em 0.75em 0.55em;
  background: linear-gradient(180deg, rgba(var(--col-sky-rgb), 0) 0%, rgba(var(--col-sky-rgb), 0.65) 100%);
  box-decoration-break: clone;
  animation: heroOverlayIn 1s ease-out 0.25s both;
}

@media (max-width: 900px) {
  .hero-video-overlay {
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }

  .hero-video-overlay span {
    font-size: clamp(1.5rem, 4vw + 0.6rem, 2.6rem);
  }
}

@keyframes heroOverlayIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-full > * {
  max-width: none;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0.1) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-full-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero-full-content {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0;
}

/* Logo sovrapposto prima del titolo nello hero */
.hero-logo-mark {
  width: clamp(190px, 30vw, 320px);
  margin-inline: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.35));
}

.hero-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-animate .hero-logo-mark img {
  opacity: 0;
  transform: translateY(8px);
  animation: logoFadeIn 0.8s ease-out 0.12s forwards;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 2.6vw + 0.6rem, 2.8rem);
  color: var(--col-secondary);
  line-height: 1.05;
  margin-bottom: 0;
  white-space: pre-line;
  align-self: stretch;
  text-align: left;
}

.hero-title.is-hero-split .hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: sloganLetterIn 0.55s ease-out forwards;
  animation-delay: var(--letter-delay);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(120deg, var(--col-soft), var(--col-secondary));
  color: #12212b;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

/* =======================================
   TITOLI / SOTTOTITOLI SEZIONI
   ======================================= */

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--col-primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--col-soft), var(--col-secondary));
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  color: var(--col-text-soft);
  max-width: 640px;
  line-height: 1.7;
}

.services-subtitle {
  font-size: 1.08rem;
}

.section-title-center {
  text-align: center;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle-center {
  text-align: center;
  margin-inline: auto;
}

/* =======================================
   CTA VENDITA
   ======================================= */

.section-sell {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
}

.sell-inner {
  display: grid;
  gap: 8px;
}

.sell-top {
  text-align: center;
}

.sell-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
}

.sell-media {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.sell-video-wrap {
  width: min(456px, 66vw);
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-card);
  background: #ffffff;
}

.sell-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.sell-subtitle {
  max-width: 720px;
  margin-bottom: 12px;
}

.sell-cta-row {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  row-gap: 18px;
  column-gap: clamp(28px, 4vw, 60px);
  flex-wrap: wrap;
  text-align: left;
}

.sell-cta {
  width: min(190px, 70vw);
  padding: 16px 14px;
  min-height: 80px;
  position: relative;
  top: -12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 6px;
}

.sell-cta::after {
  content: none;
}

.sell-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sell-cta-text span {
  display: block;
}

.sell-guarantee-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.sell-guarantee {
  width: min(150px, 55vw);
  aspect-ratio: 1;
  text-align: center;
  padding: 30px 12px 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3f6472 0%, #2b4351 60%, #1c2c35 100%);
  border: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.sell-guarantee > * {
  position: relative;
  z-index: 1;
}

.sell-guarantee-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.78rem, 0.8vw + 0.5rem, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow: 0 6px 18px rgba(6, 12, 16, 0.35);
}

.sell-guarantee-title-line {
  display: block;
  line-height: 1.05;
}

.sell-guarantee-title-line:last-child {
  font-size: 1.85em;
  white-space: nowrap;
}


.sell-guarantee-text {
  font-size: 0.62rem;
  line-height: 1.35;
  max-width: 125px;
  color: rgba(237, 244, 250, 0.85);
  margin-top: 4px;
}

.sell-guarantee-note {
  font-size: 0.6rem;
  line-height: 1.45;
  max-width: 200px;
  color: rgba(53, 84, 97, 0.7);
}

.sell-guarantee:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
  .sell-guarantee {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .sell-bottom {
    flex-direction: column;
    gap: 18px;
    justify-content: center;
  }

  .sell-media {
    justify-content: center;
  }

  .sell-video-wrap {
    width: min(408px, 85vw);
    height: auto;
  }

  .sell-cta-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sell-cta {
    top: 0;
  }
}

/* =======================================
   BLOCCO WHY DOMUS ARS
   ======================================= */

.section-why {
  background-color: #f8fbfd;
  background-image:
    linear-gradient(rgba(248, 251, 253, 0.4), rgba(248, 251, 253, 0.4)),
    url("../immagini/pattern.png");
  background-repeat: repeat;
  background-size: 1200px auto;
  background-position: center;
}

.why-header {
  max-width: 880px;
  margin: 0 auto 34px auto;
}

.section-title-center span {
  color: var(--col-primary);
}

.why-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-item {
  text-align: center;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.why-img-wrap {
  width: 100%;
  max-width: 190px;
  margin: 0 auto 12px auto;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  filter: saturate(0.6) brightness(0.95);
  transform: translateY(0);
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.why-item:hover .why-img-wrap img {
  transform: translateY(-4px);
  filter: saturate(1) brightness(1) drop-shadow(0 18px 36px rgba(15, 23, 42, 0.18));
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.why-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--col-primary-dark);
  transition: transform 0.25s ease-out, color 0.25s ease-out;
}

.why-text {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--col-text-soft);
  max-width: 320px;
  margin: 0 auto;
  transition: transform 0.25s ease-out, color 0.25s ease-out;
}

.why-item:hover .why-title,
.why-item:hover .why-text {
  transform: translateY(-4px);
  color: var(--col-primary-dark);
}

/* =======================================
   TESTIMONIANZE
   ======================================= */

.section-testimonials {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.testimonials-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.testimonials-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--col-border);
  border-radius: 24px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.testimonial-stars {
  color: var(--col-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.testimonial-stars .star {
  display: inline-block;
}

.testimonial-stars .star-muted {
  color: rgba(53, 84, 97, 0.3);
}

.testimonial-text {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--col-text-soft);
  line-height: 1.7;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-primary-dark);
}

.testimonial-role {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: rgba(53, 84, 97, 0.7);
}

/* =======================================
   APPROCCIO (3 PILLAR)
   ======================================= */

.section-approach {
  background: linear-gradient(180deg, #f7fafc 0%, #edf3f6 100%);
}

.approach-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.approach-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.approach-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(196, 215, 223, 0.95);
}

.approach-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--col-primary-dark);
}

.approach-text {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--col-text-soft);
}

/* =======================================
   PERCORSO – SEZIONE SCURA
   ======================================= */

.section-steps {
  background: var(--seller-dark);
  color: var(--col-bg);
  position: relative;
  overflow: hidden;
  --step-surface: rgba(248, 250, 252, 0.14);
  --step-surface-hover: rgba(248, 250, 252, 0.18);
  --step-border: rgba(255, 255, 255, 0.22);
  --step-border-hover: var(--col-soft);
  --step-shadow: 0 18px 45px rgba(4, 10, 16, 0.55);
  --step-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.7);
  --step-badge-bg: linear-gradient(130deg, var(--col-soft), var(--col-secondary));
  --step-badge-color: #12212b;
  --step-title: #f9fbff;
  --step-text: rgba(230, 238, 247, 0.9);
}

.section-steps.is-steps-seller {
  background: var(--seller-dark);
}

.section-steps.is-steps-buyer {
  background: linear-gradient(180deg, var(--buyer-pink) 0%, var(--buyer-pink) 70%, var(--col-sky) 100%);
  color: var(--col-primary);
}

.section-steps.is-steps-buyer .section-title {
  color: var(--col-primary);
}

.section-steps.is-steps-buyer .section-subtitle {
  color: rgb(53 84 97 / 0.7);
}

.section-steps::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.08;
  background-image: radial-gradient(circle at 0 0, #ffffff 0, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.section-steps::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../immagini/path.png") center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.section-steps > * {
  position: relative;
  z-index: 1;
}

.section-steps .section-title {
  color: var(--col-bg);
}

.section-steps .section-subtitle {
  color: rgb(242 246 248 / 0.85);
}

/* Toggle percorso venditori/acquirenti */
.steps-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.steps-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.steps-toggle-btn {
  border: none;
  background: transparent;
  color: #e5edf3;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.steps-toggle-btn:hover {
  transform: translateY(-1px);
}

.steps-toggle-btn.is-active {
  background: var(--col-bg);
  color: var(--col-primary);
}

.steps-toggle-btn[data-steps-target="seller"].is-active {
  background: var(--seller-dark);
  color: #ffffff;
}

.steps-toggle-btn[data-steps-target="buyer"].is-active {
  background: var(--buyer-pink);
  color: var(--buyer-ink);
}

.steps-panel[hidden] {
  display: none;
}

.steps-panel[data-steps-panel="seller"] {
  --step-surface: rgb(var(--seller-dark-rgb) / 0.6);
  --step-surface-hover: rgb(var(--seller-dark-rgb) / 0.76);
  --step-border: rgb(var(--col-sky-rgb) / 0.4);
  --step-border-hover: rgb(var(--col-sky-rgb) / 0.82);
  --step-badge-bg: linear-gradient(130deg, var(--col-secondary), var(--col-sky));
  --step-badge-color: var(--col-primary);
  --step-title: var(--col-bg);
  --step-text: rgb(242 246 248 / 0.9);
}

.steps-panel[data-steps-panel="buyer"] {
  --step-surface: rgb(var(--buyer-pink-rgb) / 0.45);
  --step-surface-hover: rgb(var(--buyer-pink-rgb) / 0.6);
  --step-border: rgb(var(--buyer-pink-rgb) / 0.8);
  --step-border-hover: rgb(var(--buyer-pink-rgb) / 0.9);
  --step-badge-bg: linear-gradient(130deg, var(--col-bg), var(--buyer-pink));
  --step-badge-color: var(--buyer-ink);
  --step-title: var(--buyer-ink);
  --step-text: rgb(53 84 97 / 0.9);
}

/* Timeline verticale che racconta i 5 step del percorso */
.steps-timeline {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--step-surface);
  border-radius: 20px;
  border: 1px solid var(--step-border);
  box-shadow: var(--step-shadow);
  backdrop-filter: blur(14px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--step-shadow-hover);
  background: var(--step-surface-hover);
  border-color: var(--step-border-hover);
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--step-badge-bg);
  color: var(--step-badge-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--step-title);
}

.step-text {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: var(--step-text);
}

/* =======================================
   PROCESS DIAGRAM
   ======================================= */

.process-diagram {
  background: #ffffff;
}

.process-diagram-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.process-diagram .section-title {
  margin-bottom: 6px;
}

.process-flow-grid {
  --process-line: rgb(var(--buyer-pink-rgb) / 0.85);
  --process-seller: var(--seller-dark);
  --process-buyer: var(--buyer-pink);
  --process-shared-border: var(--col-sky);
  --process-step-height: 46px;
  --process-step-gap: 16px;
  --process-col-gap: clamp(36px, 8vw, 120px);
  --process-col-width: calc((100% - (2 * var(--process-col-gap))) / 3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(10, var(--process-step-height));
  column-gap: var(--process-col-gap);
  row-gap: var(--process-step-gap);
  align-items: center;
  position: relative;
}

.process-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.process-title--seller {
  grid-column: 1;
  grid-row: 1;
  color: var(--process-seller);
}

.process-title--buyer {
  grid-column: 3;
  grid-row: 1;
  color: var(--buyer-pink-deep);
}

.process-node {
  position: relative;
  min-height: var(--process-step-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  z-index: 2;
}

.process-node--seller {
  grid-column: 1;
  background: var(--process-seller);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(53, 84, 97, 0.25);
  justify-self: start;
  width: min(240px, 100%);
}

.process-node--buyer {
  grid-column: 3;
  background: var(--process-buyer);
  color: var(--buyer-ink);
  box-shadow: 0 10px 24px rgb(var(--buyer-pink-rgb) / 0.3);
  justify-self: start;
  width: min(240px, 100%);
}

.process-node--shared {
  grid-column: 2;
  background: var(--col-surface);
  color: var(--col-primary);
  border: 2px solid var(--process-shared-border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  justify-self: center;
  width: min(220px, 100%);
}

.process-node--chain::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--process-step-gap);
  background: var(--process-line);
}

.process-node--to-merge::after {
  height: calc((var(--process-step-height) / 2) + var(--process-step-gap));
}

.process-node--s1 { grid-row: 2; }
.process-node--s2 { grid-row: 3; }
.process-node--s3 { grid-row: 4; }
.process-node--s4 { grid-row: 5; }
.process-node--s5 { grid-row: 6; }

.process-node--b1 { grid-row: 5; }
.process-node--b2 { grid-row: 6; }
.process-node--b3 { grid-row: 9; }

.process-node--c1 { grid-row: 8; }
.process-node--c2 { grid-row: 9; }
.process-node--c3 { grid-row: 10; }
.process-node--c4 { grid-row: 11; }

.process-connector {
  position: relative;
  height: var(--process-step-height);
  z-index: 1;
}

.process-connector--merge {
  grid-column: 1 / 4;
  grid-row: 7;
}

.process-connector--branch {
  grid-column: 1 / 4;
  grid-row: 9;
}

.process-connector-line {
  position: absolute;
  background: var(--process-line);
}

.process-connector-line--left,
.process-connector-line--right,
.process-connector-line--branch {
  top: 50%;
  height: 2px;
}

.process-connector-line--left {
  left: calc(var(--process-col-width) / 2);
  width: calc(var(--process-col-width) + var(--process-col-gap));
}

.process-connector-line--right {
  left: calc(var(--process-col-width) + var(--process-col-gap) + (var(--process-col-width) / 2));
  width: calc(var(--process-col-width) + var(--process-col-gap));
}

.process-connector-line--down {
  left: calc(var(--process-col-width) + var(--process-col-gap) + (var(--process-col-width) / 2));
  top: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc((var(--process-step-height) / 2) + var(--process-step-gap));
}

.process-connector-line--branch {
  left: calc(var(--process-col-width) + var(--process-col-gap) + (var(--process-col-width) / 2));
  width: calc(var(--process-col-width) + var(--process-col-gap));
}

.process-diagram-footnote {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--col-text-soft);
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .process-flow-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 16px;
  }

  .process-flow-grid > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .process-title {
    text-align: center;
    font-size: 1.2rem;
  }

  .process-node {
    width: min(280px, 100%);
    justify-self: center;
  }

  .process-connector {
    display: none;
  }

  .process-node--chain::after {
    display: none;
  }
}

/* =======================================
   SERVIZI HOME
   ======================================= */

.section-services {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
}

/* Griglia responsiva delle card dedicate ai servizi */
.services-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 22px;
  padding: 20px 20px 22px;
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--col-primary);
}

.card-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-primary);
  margin-bottom: 6px;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--col-primary-dark);
}

.service-list {
  margin-top: 6px;
  padding-left: 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--col-text-soft);
}

.service-list li + li {
  margin-top: 4px;
}

/* ===== SERVIZI HOME - FLIP CARDS ===== */
.services-flip-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

@media (min-width: 901px) {
  .services-flip-grid .service-flip-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .services-flip-grid .service-flip-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.service-flip-card {
  position: relative;
  min-height: 260px;
  grid-column: span 2;
  perspective: 1200px;
  cursor: pointer;
}

.service-flip-card:focus-visible {
  outline: 3px solid var(--col-soft);
  outline-offset: 4px;
}

.service-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-flip-card:hover .service-flip-inner,
.service-flip-card:focus-within .service-flip-inner {
  transform: rotateY(180deg);
}

.service-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--col-border);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-flip-front {
  background: #0f1720;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.service-flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.service-flip-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: inherit;
  overflow: hidden;
  background: none;
  box-shadow: none;
  z-index: 0;
}

.service-flip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-flip-title {
  position: relative;
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.service-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(140deg, var(--col-primary), #1b2a35);
  border-color: rgba(53, 84, 97, 0.9);
}

.service-flip-back p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(241, 246, 251, 0.92);
}

@media (max-width: 900px) {
  .services-flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-flip-card {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .services-flip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-hero-animate .header-logo img,
  .hero-animate .hero-logo-mark img,
  .hero-title.is-hero-split .hero-letter,
  .hero-video-overlay span,
  .hero__title-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .service-flip-inner {
    transition: none;
  }

  .service-flip-card:hover .service-flip-inner,
  .service-flip-card:focus-within .service-flip-inner {
    transform: none;
  }

  .package-card--premium::after {
    animation: none;
  }

  .package-card--premium {
    animation: none;
  }
}

/* =======================================
   CHI SONO (SEZIONE HOME)
   ======================================= */

.section-about {
  background: #f7fafc;
}

.section-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-text-soft);
  margin-bottom: 4px;
}

.about-layout {
  margin-top: 22px;
}

.about-text p {
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  color: var(--col-text-soft);
}

.about-text p + p {
  margin-top: 10px;
}

/* =======================================
   CONTATTI HOME (BANDA SCURA)
   ======================================= */

.section-contact {
  background: radial-gradient(circle at top, #1b2933 0, #0b1016 70%);
  color: #e5edf3;
}

.section-contact .section-title {
  color: #f9fbff;
}

.section-contact .section-subtitle {
  color: rgba(219, 231, 245, 0.88);
}

.section-contact .section-label {
  color: rgba(219, 231, 245, 0.72);
}

.contact-cta {
  margin-top: 34px;
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(196, 215, 223, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

.contact-cta-text {
  max-width: 420px;
}

.contact-cta-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #f9fbff;
}

.contact-cta-text p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(219, 231, 245, 0.9);
}

.contact-data {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(219, 231, 245, 0.9);
}

.contact-data p + p {
  margin-top: 4px;
}

.contact-data a {
  color: var(--col-secondary);
  text-decoration: none;
}

.contact-data a:hover {
  text-decoration: underline;
}

/* =======================================
   PAGINE INTERNE (ABOUT, PACCHETTI, SERVIZI, CONTATTI)
   ======================================= */

.page-hero {
  padding: 120px clamp(24px, 6vw, 80px) 40px;
  background: radial-gradient(circle at top, #f4f7fa 0, #ffffff 60%);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-text-soft);
  margin-bottom: 6px;
}

.page-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--col-primary-dark);
}

.page-hero p {
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  color: var(--col-text-soft);
}

.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.about-hero-photo {
  display: flex;
  justify-content: flex-end;
}

.about-hero-photo img {
  width: min(180px, 30vw);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  display: block;
}

@media (max-width: 900px) {
  .about-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero-photo {
    justify-content: center;
  }

  .about-hero-photo img {
    width: min(180px, 60vw);
  }
}

.page-section {
  padding: 40px clamp(24px, 6vw, 80px) 80px;
  background: #ffffff;
}

.page-two-cols {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.page-two-cols > div:first-child {
  padding-left: 150px; /* puoi provare 40–80px */
}


.page-two-cols h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--col-primary-dark);
}

.page-two-cols h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--col-primary);
}

.page-two-cols p,
.page-list {
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  color: var(--col-text-soft);
}

.page-list {
  margin: 8px 0 10px 18px;
}

/* =======================================
   CONTATTI – FORM PAGINA
   ======================================= */

/* Sezione contatti chiara in fondo alle pagine */
.section-contact-white {
  background: #ffffff;
  border-top: 1px solid var(--col-border-soft);
}

.section-contact-white .contact-layout {
  margin-top: 28px;
}

.section-contact-white .contact-subtitle {
  max-width: 720px;
}

/* Layout a due colonne: form e colonna informativa */
.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
}

.contact-form {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 22px;
  padding: 22px 20px 24px;
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-card);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--col-text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--col-primary);
  box-shadow: 0 0 0 1px rgba(53, 84, 97, 0.25);
}

.contact-full {
  margin-bottom: 14px;
}

.contact-submit {
  margin-top: 4px;
}

.contact-side-info h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--col-primary-dark);
}

.contact-side-info p {
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  color: var(--col-text-soft);
  margin-bottom: 8px;
}

.contact-side-info a {
  color: var(--col-primary);
  text-decoration: none;
}

.contact-side-info a:hover {
  text-decoration: underline;
}

/* =======================================
   FOOTER
   ======================================= */

footer {
  padding: 24px clamp(24px, 6vw, 80px);
  background: #05080c;
  color: #9ba8b7;
}

.footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
}

.footer-links a {
  font-family: "Inter", sans-serif;
  color: #d0d7e0;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
    flex-direction: column;
    gap: 14px;
    z-index: 60;
  }

  body.is-nav-open nav {
    display: flex;
  }

  nav a,
  .nav-link-button {
    width: 100%;
    text-align: left;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
  }

  .header-hero nav > a,
  .header-hero nav > .nav-item > .nav-link-button,
  .header-hero.is-solid nav > a,
  .header-hero.is-solid nav > .nav-item > .nav-link-button,
  .header-hero:not(.is-solid) nav > a,
  .header-hero:not(.is-solid) nav > .nav-item > .nav-link-button {
    color: var(--col-text-soft);
  }

  .header-hero nav > a::after,
  .header-hero nav > .nav-item > .nav-link-button::after,
  .header-hero.is-solid nav > a::after,
  .header-hero.is-solid nav > .nav-item > .nav-link-button::after,
  .header-hero:not(.is-solid) nav > a::after,
  .header-hero:not(.is-solid) nav > .nav-item > .nav-link-button::after {
    background: var(--col-primary);
  }

  .header-hero nav > a:hover,
  .header-hero nav > .nav-item > .nav-link-button:hover,
  .header-hero.is-solid nav > a:hover,
  .header-hero.is-solid nav > .nav-item > .nav-link-button:hover,
  .header-hero:not(.is-solid) nav > a:hover,
  .header-hero:not(.is-solid) nav > .nav-item > .nav-link-button:hover {
    color: var(--col-primary);
  }

  .nav-has-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 6px 0 0 12px;
    width: 100%;
    border-left: 2px solid rgba(53, 84, 97, 0.15);
  }

  .nav-dropdown a {
    padding: 6px 0 6px 6px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .btn-pill {
    width: 100%;
    justify-content: center;
  }

  .hero-full {
    padding: 120px clamp(20px, 6vw, 60px);
    align-items: center;
  }

  .hero-full-content {
    margin-left: 0;
    max-width: 100%;
    padding: 18px 18px;
  }

  .btn-primary {
    width: 100%;
  }

  .steps-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-two-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-two-cols > div:first-child {
    padding-left: 0;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-explained-inner {
    padding-left: 0;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  section {
    padding-inline: 20px;
    padding-block: 60px;
  }

  .page-section {
    padding-inline: 20px;
  }

  footer {
    padding-inline: 20px;
  }
}

/* =======================================
   PACCHETTI – VENDITORE / ACQUIRENTE
   ======================================= */

.packages-section {
  background: linear-gradient(180deg, #f7fafc 0%, #f1f5f8 100%);
}

.packages-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.packages-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 52px;
}

.packages-group-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--col-primary);
}

/* etichetta verticale Venditore / Acquirente */
.packages-label {
  display: none;
}

/* contenitore cards */
.packages-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 26px;
  justify-content: center;
}

/* card base */
.package-card {
  position: relative;
  isolation: isolate;
  --package-glow: rgb(var(--buyer-pink-rgb) / 0.25);
  --package-border-hover: rgb(var(--buyer-pink-rgb) / 0.6);
  --package-cta-bg: linear-gradient(120deg, var(--col-soft), var(--col-secondary));
  --package-cta-color: #1b2a35;
  --package-cta-border: rgba(255, 255, 255, 0.35);
  --package-cta-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  --package-premium-glow: rgb(var(--buyer-pink-rgb) / 0.5);
  padding: 26px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--col-primary) 0%, var(--col-secondary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(4, 10, 16, 0.55);
  color: #f2f7fb;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.package-card > * {
  position: relative;
  z-index: 1;
}

/* effetto hover */
.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--package-glow), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(4, 10, 16, 0.7);
  border-color: var(--package-border-hover);
}

.package-card:hover::before {
  opacity: 0.8;
}

/* header card */

.package-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 1vw + 1.2rem, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.package-tagline {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: rgba(226, 236, 244, 0.82);
  max-width: 28ch;
}

.package-icon {
  display: none;
}

/* price */
.package-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.package-price-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 2vw + 1.1rem, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.package-price-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 236, 244, 0.7);
}

.package-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--package-cta-border);
  background: var(--package-cta-bg);
  color: var(--package-cta-color);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--package-cta-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.package-cta::after {
  content: ">";
  font-size: 0.95rem;
}

.package-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  border-color: #ffffff;
}

/* elenco voci */
.package-list {
  list-style: none;
  margin-top: 8px;
  padding-top: 14px;
  padding-left: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 241, 249, 0.9);
}

.package-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.package-list li + li {
  margin-top: 0;
}

.package-list li::before {
  content: "➤";
  font-size: 0.7rem;
  margin-right: 7px;
  color: var(--col-primary);
}

/* Variante venditore – cards scure */

.package-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--col-soft);
  box-shadow: 0 0 0 3px rgb(var(--buyer-pink-rgb) / 0.18);
  flex: 0 0 auto;
}

.package-card--seller {
  background: linear-gradient(150deg, var(--seller-dark-deep) 0%, var(--seller-dark) 100%);
  --package-glow: rgb(var(--seller-dark-deep-rgb) / 0.45);
  --package-border-hover: rgb(var(--col-sky-rgb) / 0.7);
  --package-cta-bg: linear-gradient(120deg, var(--seller-dark-deep), var(--seller-dark));
  --package-cta-color: #f7fbff;
  --package-cta-border: rgb(var(--col-sky-rgb) / 0.45);
  --package-cta-shadow: 0 18px 35px rgba(7, 16, 22, 0.45);
  --package-premium-glow: rgb(var(--col-sky-rgb) / 0.55);
}

.package-card--seller .package-name,
.package-card--seller .package-fee {
  color: #f9fbff;
}

.package-card--seller .package-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fbff;
}

.package-card--seller .package-list {
  color: rgba(242, 246, 248, 0.92);
}

.package-card--seller .package-list li::before {
  background: var(--col-sky);
  box-shadow: 0 0 0 3px rgb(var(--col-sky-rgb) / 0.25);
}

/* PREMIUM – badge + leggero focus */

.package-card--premium {
  border-color: var(--package-border-hover);
  box-shadow: 0 32px 90px rgba(4, 10, 16, 0.75);
  animation: premiumFloat 4s ease-in-out infinite;
  z-index: 1;
}

.package-card--premium:hover {
  border-color: var(--package-border-hover);
}

.package-card--premium::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--package-premium-glow), transparent 60%);
  opacity: 0.6;
  filter: blur(6px);
  animation: premiumGlow 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes premiumGlow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes premiumFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Badge garanzia */

.package-guarantee {
  position: absolute;
  right: -18px;
  bottom: 18px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--buyer-pink));
  border: 3px dotted #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: "Inter", sans-serif;
  color: #27343f;
  transform: translateY(0);
  animation: floatBadge 3.2s ease-in-out infinite;
}

.guarantee-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.guarantee-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.guarantee-note {
  font-size: 0.6rem;
  margin-top: 4px;
  opacity: 0.85;
}

/* Animazione badge che “galleggia” */
@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Variante acquirente – cards chiare */

.packages-row-buyer {
  margin-top: 14px;
}

.package-card--buyer {
  background: linear-gradient(150deg, var(--col-bg) 0%, var(--buyer-pink) 100%);
  border-color: rgb(var(--buyer-pink-rgb) / 0.5);
  color: var(--buyer-ink);
  --package-glow: rgb(var(--buyer-pink-rgb) / 0.5);
  --package-border-hover: rgb(var(--buyer-pink-rgb) / 0.85);
  --package-cta-bg: linear-gradient(120deg, var(--col-bg), var(--buyer-pink));
  --package-cta-color: var(--buyer-ink);
  --package-cta-border: rgb(var(--buyer-pink-rgb) / 0.45);
  --package-cta-shadow: 0 18px 35px rgba(53, 84, 97, 0.18);
  --package-premium-glow: rgb(var(--buyer-pink-rgb) / 0.75);
}

.package-card--buyer .package-name,
.package-card--buyer .package-price-value {
  color: var(--buyer-ink);
}

.package-card--buyer .package-tagline,
.package-card--buyer .package-price-label,
.package-card--buyer .package-list {
  color: rgba(53, 84, 97, 0.82);
}

.package-card--buyer .package-list li::before {
  background: var(--buyer-pink-deep);
  box-shadow: 0 0 0 3px rgb(var(--buyer-pink-rgb) / 0.35);
}

/* =======================================
   RESPONSIVE PACCHETTI
   ======================================= */

@media (max-width: 900px) {
  .packages-row {
    margin-bottom: 40px;
  }

  .packages-group-title {
    text-align: left;
  }

  .package-card {
    padding: 24px 20px;
  }

  .package-guarantee {
    position: static;
    margin-top: 14px;
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .hero-full {
    min-height: 70vh;
    background-image: url("../immagini/hero-famiglia-mobile.png");
    background-position: top center;
    background-size: cover;
  }

  .hero-full-content {
    padding: 16px 16px;
    border-radius: 22px;
  }

  .hero-logo-mark {
    width: clamp(150px, 55vw, 230px);
  }
}

/* ===== SERVIZI SLIDER ===== */

.services-slider-section {
  background: #ffffff;
}

.services-slider-header {
  max-width: 840px;
  margin: 0 auto 26px;
  text-align: center;
}

.services-slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 48px;
}

.slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}

.slider-viewport::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: flex;
  gap: 22px;
}

.slider-card {
  flex: 0 0 clamp(260px, 75vw, 420px);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--col-border);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.slider-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #eef3f6;
}

.slider-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-primary-dark);
}

.slider-card-text {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--col-text-soft);
  line-height: 1.6;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--col-border);
  background: #ffffff;
  color: var(--col-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slider-nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.slider-nav:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.slider-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(53, 84, 97, 0.25);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.slider-dot.is-active {
  background: var(--col-primary);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .services-slider {
    padding-inline: 0;
  }

  .slider-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .slider-card {
    flex-basis: 85vw;
  }
}

/* ===== LOGO EXPLAINED (REBUILD) ===== */

.logo-explained {
  background: #ffffff;
  padding: 70px clamp(24px, 6vw, 80px) 90px;
}

.logo-explained-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.logo-explained .section-title {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.logo-explained-stage {
  margin-top: 10px;
  position: relative;
  min-height: 520px;
  padding: 18px 32px;
  display: grid;
  place-items: center;
}

.logo-explained-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 1;
}

.logo-explained-core img {
  position: relative;
  width: 600px;
  max-width: 100%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.2));
}

.logo-explained-callout {
  --line-length: 120px;
  --line-angle: 40deg;
  --line-top: 60%;
  --arrow-size: 22px;
  --arrow-offset: calc(var(--line-length) - var(--arrow-size));
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--col-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  max-width: 260px;
  z-index: 2;
}

.logo-explained-callout h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-primary-dark);
  margin-bottom: 6px;
}

.logo-explained-callout p {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: var(--col-text-soft);
  line-height: 1.55;
}

.logo-explained-callout::after,
.logo-explained-callout::before {
  content: "";
  position: absolute;
}

.logo-explained-callout::after {
  top: var(--line-top);
  width: var(--line-length);
  height: 1px;
  background: var(--col-primary);
}

.logo-explained-callout::before {
  top: calc(var(--line-top) - (var(--arrow-size) / 2));
  width: var(--arrow-size);
  height: var(--arrow-size);
  background: var(--col-primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.logo-explained-callout.callout-left {
  text-align: right;
}

.logo-explained-callout.callout-right {
  text-align: left;
  --arrow-offset: var(--line-length);
}

.logo-explained-callout.callout-top {
  --line-top: 75%;
}

.logo-explained-callout.callout-bottom {
  --line-top: 25%;
}

.logo-explained-callout.callout-left.callout-top {
  --line-angle: 40deg;
}

.logo-explained-callout.callout-left.callout-bottom {
  --line-angle: -40deg;
}

.logo-explained-callout.callout-right.callout-top {
  --line-angle: -40deg;
}

.logo-explained-callout.callout-right.callout-bottom {
  --line-angle: 40deg;
}

.logo-explained-callout.callout-left.callout-top {
  top: 0;
  left: 0;
}

.logo-explained-callout.callout-right.callout-top {
  top: 0;
  right: 0;
}

.logo-explained-callout.callout-left.callout-bottom {
  bottom: 0;
  left: 0;
}

.logo-explained-callout.callout-right.callout-bottom {
  bottom: 0;
  right: 0;
}

.logo-explained-callout.callout-left::after,
.logo-explained-callout.callout-left::before {
  left: 100%;
  transform-origin: left center;
}

.logo-explained-callout.callout-right::after,
.logo-explained-callout.callout-right::before {
  right: 100%;
  transform-origin: right center;
}

.logo-explained-callout.callout-left::after,
.logo-explained-callout.callout-right::after {
  transform: rotate(var(--line-angle));
}

.logo-explained-callout.callout-left::before {
  transform: rotate(var(--line-angle)) translateX(var(--arrow-offset));
}

.logo-explained-callout.callout-right::before {
  transform: rotate(calc(var(--line-angle) + 180deg)) translateX(var(--arrow-offset));
}

@media (max-width: 900px) {
  .logo-explained-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 0;
  }

  .logo-explained-core {
    order: -1;
    padding: 10px 0 18px;
  }

  .logo-explained-callout {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: 520px;
    width: 100%;
    text-align: left;
  }

  .logo-explained-callout::after,
  .logo-explained-callout::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .logo-explained-core img {
    width: min(200px, 80%);
  }
}
