/* Fonts are self-hosted: see fonts.css (loaded before this file). */

/* ==========================================================
   BGV IL COLLE FIORENTE — ECQ ITALY
   Premium Editorial / Italian Heritage / Private Capital
   Complete Stylesheet
   ========================================================== */

/* 01 — DESIGN SYSTEM */

:root {
  color-scheme: light;

  --forest-950: #111e1a;
  --forest-900: #172720;
  --forest-850: #1c3027;
  --forest-800: #243c30;
  --forest-700: #345443;
  --forest-600: #51705b;

  --gold-300: #e4c995;
  --gold-400: #d3b47a;
  --gold-500: #b9985c;
  --gold-600: #80633a;

  --ivory-50: #fcfaf5;
  --ivory-100: #f7f4ec;
  --ivory-200: #eee9dc;
  --ivory-300: #dfd7c6;

  --ink: #1d2b25;
  --muted: #69736c;
  --line: rgba(39, 60, 48, 0.13);
  --line-light: rgba(233, 218, 182, 0.17);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Manrope", sans-serif;

  --container: 1240px;
  --header-height: 92px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --shadow-soft: 0 20px 60px rgba(24, 43, 32, .07);
  --shadow-hover: 0 30px 80px rgba(24, 43, 32, .13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--gold-400);
  color: var(--forest-950);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 5px;
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(var(--container), calc(100% - 96px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}


/* 02 — HEADER */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--ivory-50);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(20, 39, 28, .025);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex-shrink: 0;
  color: var(--forest-900);
  transition: opacity .3s ease;
}

.brand:hover {
  opacity: .77;
}

.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  color: var(--gold-500);
}

.brand-text {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  align-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.brand-text small {
  display: block;
  flex-basis: 100%;
  margin-top: 6px;
  color: var(--gold-600);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .23em;
  line-height: 1.3;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.1vw, 34px);
  min-width: 0;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: #435047;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
  white-space: nowrap;
  transition: color .25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: var(--gold-500);
  transition: right .35s var(--ease);
}

.main-nav a:hover {
  color: var(--forest-900);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid #e4e0d5;
  border-radius: 5px;
  background: #f1eee6;
}

.lang-switch button {
  appearance: none;
  min-width: 36px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #5f6862;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  transition:
    color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.lang-switch button:hover {
  color: var(--forest-900);
  background: #e7e1d4;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--forest-900);
  color: var(--gold-300);
  box-shadow: 0 2px 7px rgba(17, 30, 26, .15);
}

.lang-switch button[aria-pressed="true"]:hover {
  background: var(--forest-800);
  color: #fff0cf;
}


/* 03 — HERO */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(790px, 88svh);
  min-height: clamp(650px, 82svh, 880px);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 65% 75% at 85% 30%,
      rgba(170, 146, 92, .15),
      transparent 70%
    ),
    radial-gradient(
      ellipse 75% 95% at -20% 95%,
      rgba(94, 123, 88, .23),
      transparent 68%
    ),
    linear-gradient(
      116deg,
      #10201b 0%,
      #1b3025 48%,
      #2b4030 100%
    );
  color: var(--ivory-50);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      111deg,
      transparent 0,
      transparent 96px,
      rgba(236, 214, 163, .025) 97px,
      transparent 98px
    ),
    radial-gradient(
      circle at 80% 34%,
      transparent 0 115px,
      rgba(214, 184, 124, .11) 116px,
      transparent 117px,
      transparent 168px,
      rgba(214, 184, 124, .075) 169px,
      transparent 170px,
      transparent 222px,
      rgba(214, 184, 124, .05) 223px,
      transparent 224px
    );
  opacity: .95;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 13%;
  right: -12%;
  width: min(65vw, 890px);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 198, 145, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(226, 198, 145, .018),
    0 0 0 120px rgba(226, 198, 145, .014),
    0 0 0 180px rgba(226, 198, 145, .01);
  pointer-events: none;
  transform: translateY(-8%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 116px 184px;
}

.hero .eyebrow {
  max-width: 750px;
  color: var(--gold-300);
}

.hero h1 {
  max-width: 940px;
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.1vw, 94px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.12;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .08);
}

.hero .lead {
  max-width: 660px;
  margin-bottom: 37px;
  color: rgba(250, 248, 239, .77);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.9;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
  color: var(--gold-600);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .23em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 30px;
  background: currentColor;
  opacity: .8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 17px 27px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
  text-align: center;
  transition:
    transform .35s var(--ease),
    background .3s ease,
    border-color .3s ease,
    color .3s ease,
    box-shadow .3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-400);
  color: var(--forest-950);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.btn-primary:hover {
  background: #e8ce9b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.btn-primary::after {
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--ease);
}

.btn-primary:hover::after {
  transform: translate(3px, -3px);
}

.btn-ghost {
  border-color: rgba(246, 238, 216, .39);
  background: rgba(255, 255, 255, .025);
  color: var(--ivory-50);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--gold-300);
  background: rgba(243, 230, 198, .10);
  color: #fff;
}

.hero-hills {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(125px, 18vw, 235px);
  pointer-events: none;
}

.hill-back {
  fill: #57664a;
  opacity: .39;
}

.hill-front {
  fill: var(--ivory-50);
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero-actions {
    animation: heroEntrance .5s var(--ease) both;
  }

  .hero h1 {
    animation-delay: .05s;
  }

  .hero .lead {
    animation-delay: .1s;
  }

  .hero-actions {
    animation-delay: .15s;
  }
}


/* 04 — ECQ EXCLUSIVITY BAND */

.ecq-band {
  position: relative;
  background: var(--ivory-50);
}

.ecq-band-inner {
  display: flex;
  align-items: center;
  gap: clamp(25px, 4vw, 65px);
  padding-block: 38px 46px;
  border-bottom: 1px solid var(--line);
}

.ecq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  flex-shrink: 0;
  padding: 11px 20px;
  border: 1px solid var(--gold-500);
  color: var(--forest-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.ecq-band p {
  max-width: 870px;
  margin: 0;
  color: #616d63;
  font-size: 14px;
  line-height: 1.9;
}


/* 05 — TYPOGRAPHY & SECTIONS */

.section {
  position: relative;
  padding-block: clamp(92px, 10vw, 155px);
  background: var(--ivory-50);
}

.section h2 {
  max-width: 880px;
  margin-bottom: 46px;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(39px, 4.4vw, 65px);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: 1.22;
}

.section .lead {
  max-width: 640px;
  color: #647066;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 400;
  line-height: 1.85;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(55px, 8vw, 135px);
}

.two-col > * {
  min-width: 0;
}

.two-col h2 {
  margin-bottom: 0;
}

.prose {
  padding-top: 12px;
}

.prose p {
  margin-bottom: 25px;
  color: #58645a;
  font-size: 16px;
  line-height: 2.05;
}

.prose p:first-child {
  color: #354a3c;
  font-size: 18px;
  line-height: 1.95;
}

.prose p:last-child {
  margin-bottom: 0;
}


/* 06 — SERVICES */

.section-alt {
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 40% at 100% 0,
      rgba(191, 168, 116, .075),
      transparent 75%
    ),
    var(--ivory-100);
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 96px, var(--container));
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

#servizi h2 {
  margin-bottom: 51px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 315px;
  padding: clamp(25px, 3vw, 41px);
  overflow: hidden;
  border: 1px solid #e4dfd2;
  background: #fffefa;
  box-shadow: 0 4px 18px rgba(30, 46, 34, .025);
  transition:
    transform .55s var(--ease),
    border-color .4s ease,
    box-shadow .55s var(--ease),
    background .4s ease;
}

.card:nth-child(4),
.card:nth-child(5) {
  grid-column: span 3;
  min-height: 275px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width .65s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -95px;
  bottom: -110px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(185, 152, 92, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(185, 152, 92, .024),
    0 0 0 50px rgba(185, 152, 92, .014);
  opacity: 0;
  transition:
    opacity .5s ease,
    transform .6s var(--ease);
  transform: scale(.7);
}

.card:hover {
  transform: translateY(-9px);
  border-color: rgba(185, 152, 92, .42);
  background: #fff;
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  width: 100%;
}

.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.card-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 37px;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease);
}

.card:hover .card-icon {
  transform: translateY(-4px) scale(1.06);
}

.card h3 {
  max-width: 340px;
  margin-bottom: 17px;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.35;
}

.card p {
  max-width: 420px;
  margin-bottom: 0;
  color: #6c756e;
  font-size: 14px;
  line-height: 1.95;
}


/* 07 — OUR METHOD */

#metodo {
  overflow: hidden;
}

#metodo h2 {
  margin-bottom: 70px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 45px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 73px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-500) 10%,
    var(--gold-500) 90%,
    transparent
  );
  opacity: .42;
}

.steps li {
  position: relative;
  min-width: 0;
  padding-top: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 49px;
  border: 1px solid rgba(185, 152, 92, .46);
  border-radius: 50%;
  background: var(--ivory-50);
  color: var(--gold-600);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  transition:
    background .35s ease,
    color .35s ease,
    transform .35s var(--ease);
}

.steps li:hover .step-num {
  transform: translateY(-5px);
  background: var(--forest-900);
  color: var(--gold-300);
}

.steps h3 {
  margin-bottom: 14px;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.3;
}

.steps p {
  max-width: 245px;
  margin-bottom: 0;
  color: #6b756d;
  font-size: 14px;
  line-height: 1.9;
}


/* 08 — ECQ INTERNATIONAL NETWORK */

.section-dark {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 90% at 100% 100%,
      rgba(147, 151, 105, .14),
      transparent 70%
    ),
    linear-gradient(
      135deg,
      #14241d 0%,
      #1b3027 55%,
      #263b2f 100%
    );
  color: var(--ivory-50);
}

.section-dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -380px;
  right: -300px;
  width: 850px;
  height: 850px;
  border: 1px solid rgba(214, 184, 124, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(214, 184, 124, .018),
    0 0 0 140px rgba(214, 184, 124, .014),
    0 0 0 210px rgba(214, 184, 124, .01);
  pointer-events: none;
}

.section-dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(255, 255, 255, .022) 25%
  );
  pointer-events: none;
}

.section-dark .eyebrow {
  color: var(--gold-300);
}

.section-dark h2 {
  max-width: 850px;
  margin-bottom: 26px;
  color: var(--ivory-50);
}

.section-dark .lead {
  max-width: 680px;
  margin-bottom: 61px;
  color: rgba(245, 244, 231, .69);
}

.network {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line-light);
  background: rgba(225, 207, 166, .14);
  list-style: none;
}

.network li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 11px;
  min-width: 0;
  min-height: 190px;
  padding: clamp(22px, 3vw, 39px);
  background: #1d3027;
  transition: background .4s ease;
}

.network li:hover {
  background: #2b4435;
}

.network li.is-home {
  background:
    linear-gradient(
      145deg,
      rgba(210, 180, 122, .13),
      rgba(210, 180, 122, .025)
    ),
    #294435;
}

.network li.is-home::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold-400);
}

.network li strong {
  color: #f8f4e9;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.network li.is-home strong {
  color: var(--gold-300);
}

.network li span {
  color: rgba(240, 236, 219, .58);
  font-size: 12px;
  line-height: 1.6;
}


/* 09 — CONTACT */

#contatti {
  background:
    radial-gradient(
      ellipse 50% 70% at 5% 100%,
      rgba(203, 180, 127, .10),
      transparent 70%
    ),
    var(--ivory-100);
}

#contatti .two-col {
  gap: clamp(45px, 9vw, 145px);
}

#contatti h2 {
  max-width: 590px;
  margin-bottom: 27px;
}

#contatti .lead {
  margin-bottom: 0;
}

.contact-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(37, 63, 46, .19);
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 26px 0 29px;
  border-bottom: 1px solid rgba(37, 63, 46, .14);
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-list li > a:not(.small-link),
.contact-list li > span:not(.contact-label) {
  max-width: 100%;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-list li > a:not(.small-link) {
  transition: color .25s ease;
}

.contact-list li > a:not(.small-link):hover {
  color: var(--gold-600);
}

.small-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 2px;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition:
    color .25s ease,
    transform .3s var(--ease);
}

.small-link:hover {
  transform: translateX(4px);
  color: var(--gold-600);
}


/* 10 — FOOTER */

.site-footer {
  position: relative;
  padding-block: 75px 35px;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--ivory-50);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-500) 50%,
    transparent 100%
  );
  opacity: .65;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.footer-inner > div {
  max-width: 740px;
}

.footer-brand {
  margin-bottom: 11px;
  color: var(--ivory-50);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.4;
}

.footer-brand strong {
  margin-right: 5px;
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: .83em;
  font-weight: 700;
  letter-spacing: -.025em;
}

.footer-sub {
  margin-bottom: 35px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.8;
}

.legal {
  margin-bottom: 0;
  color: rgba(244, 240, 222, .62);
  font-size: 11px;
  line-height: 2.15;
}

.legal a {
  color: rgba(244, 240, 222, .72);
  text-decoration: underline;
  text-decoration-color: rgba(244, 240, 222, .25);
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.legal a:hover {
  color: var(--gold-300);
}

.copyright {
  flex-shrink: 0;
  margin: 0;
  color: rgba(244, 240, 222, .6);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
  white-space: nowrap;
}


/* 11 — SCROLL REVEAL
   Native CSS scroll-driven animation.
   Supported modern browsers only; graceful fallback.
   No JavaScript required.
*/

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ecq-band-inner,
    .section:not(.section-dark) .eyebrow,
    .section h2,
    .prose,
    .steps li,
    .contact-list li,
    .network li,
    .card {
      animation-name: sectionReveal;
      animation-duration: 1ms;
      animation-timing-function: var(--ease);
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    .card:nth-child(2),
    .steps li:nth-child(2),
    .network li:nth-child(2) {
      animation-range: entry 0% cover 27%;
    }

    .card:nth-child(3),
    .steps li:nth-child(3),
    .network li:nth-child(3) {
      animation-range: entry 0% cover 30%;
    }
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 12 — LARGE TABLET / SMALL DESKTOP */

@media (max-width: 1100px) {
  :root {
    --header-height: 84px;
  }

  .container {
    width: min(var(--container), calc(100% - 72px));
  }

  .header-inner {
    gap: 17px;
  }

  .brand-text,
  .brand-text strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(52px, 6.5vw, 77px);
  }

  .card {
    padding: 30px;
  }

  .network li {
    padding: 24px;
  }
}


/* 13 — TABLET / MOBILE NAVIGATION */

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero {
    min-height: 700px;
  }

  .hero-inner {
    padding-block: 105px 170px;
  }

  .hero h1 {
    max-width: 730px;
    font-size: clamp(49px, 7.2vw, 72px);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .two-col h2 {
    max-width: 720px;
  }

  .prose {
    max-width: 740px;
    padding-top: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card,
  .card:nth-child(4),
  .card:nth-child(5) {
    grid-column: auto;
    min-height: 300px;
  }

  .card:last-child {
    grid-column: 1 / -1;
    min-height: 245px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 35px;
  }

  .steps::before {
    display: none;
  }

  .step-num {
    margin-bottom: 25px;
  }

  .network {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network li {
    min-height: 170px;
  }

  #contatti .two-col {
    gap: 43px;
  }
}


/* 14 — MOBILE */

@media (max-width: 600px) {
  :root {
    --header-height: 74px;
  }

  html {
    scroll-padding-top: 20px;
  }

  .container {
    width: calc(100% - 40px);
  }

  section[id] {
    scroll-margin-top: 24px;
  }

  .header-inner {
    min-height: 74px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }

  .brand-text,
  .brand-text strong {
    font-size: 14px;
  }

  .brand-text {
    column-gap: 4px;
    letter-spacing: -.05em;
  }

  .brand-text small {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: .17em;
  }

  .lang-switch {
    gap: 1px;
    padding: 3px;
  }

  .lang-switch button {
    min-width: 31px;
    min-height: 32px;
    padding: 7px 6px;
    font-size: 10px;
  }

  .hero {
    min-height: 730px;
    align-items: flex-start;
  }

  .hero::after {
    top: 36%;
    right: -60%;
    width: 110vw;
    opacity: .7;
  }

  .hero-inner {
    padding-block: 86px 175px;
  }

  .eyebrow {
    gap: 11px;
    margin-bottom: 22px;
    font-size: 9px;
    letter-spacing: .16em;
  }

  .eyebrow::before {
    width: 22px;
    flex-basis: 22px;
  }

  .hero .eyebrow {
    max-width: 340px;
    line-height: 1.9;
  }

  .hero h1 {
    max-width: 530px;
    margin-bottom: 24px;
    font-size: clamp(41px, 9.4vw, 57px);
    letter-spacing: -.055em;
    line-height: 1.16;
  }

  .hero .lead {
    max-width: 510px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    min-height: 54px;
    padding: 15px 20px;
    font-size: 11px;
  }

  .hero-hills {
    height: 128px;
  }

  .ecq-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding-block: 35px 39px;
  }

  .ecq-badge {
    min-width: auto;
    padding: 9px 17px;
    font-size: 10px;
  }

  .ecq-band p {
    font-size: 13px;
    line-height: 1.9;
  }

  .section {
    padding-block: 83px;
  }

  .section h2 {
    margin-bottom: 33px;
    font-size: clamp(35px, 8vw, 47px);
    line-height: 1.23;
  }

  .two-col {
    gap: 29px;
  }

  .two-col h2 {
    margin-bottom: 0;
  }

  .prose p {
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 1.95;
  }

  .prose p:first-child {
    font-size: 16px;
    line-height: 1.9;
  }

  #servizi h2 {
    margin-bottom: 35px;
  }

  .section-alt::before {
    width: calc(100% - 40px);
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .card,
  .card:nth-child(4),
  .card:nth-child(5),
  .card:last-child {
    grid-column: auto;
    min-height: auto;
    padding: 28px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 27px;
  }

  .card h3 {
    margin-bottom: 12px;
    font-size: 26px;
  }

  .card p {
    font-size: 14px;
    line-height: 1.85;
  }

  #metodo h2 {
    margin-bottom: 43px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 18px;
    padding-block: 23px;
    border-top: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .step-num {
    grid-row: span 2;
    width: 45px;
    height: 45px;
    margin: 0;
    font-size: 16px;
  }

  .steps h3 {
    margin: 0 0 8px;
    font-size: 25px;
  }

  .steps p {
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
  }

  .section-dark .lead {
    margin-bottom: 37px;
    font-size: 15px;
  }

  .network {
    grid-template-columns: 1fr 1fr;
  }

  .network li {
    min-height: 150px;
    gap: 10px;
    padding: 19px;
  }

  .network li strong {
    font-size: 22px;
  }

  .network li span {
    font-size: 11px;
  }

  #contatti .two-col {
    gap: 36px;
  }

  #contatti h2 {
    margin-bottom: 20px;
  }

  #contatti .lead {
    font-size: 15px;
  }

  .contact-list li {
    padding: 22px 0 24px;
  }

  .contact-list li > a:not(.small-link),
  .contact-list li > span:not(.contact-label) {
    font-size: 24px;
  }

  .site-footer {
    padding-block: 63px 29px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }

  .footer-brand {
    font-size: 28px;
  }

  .footer-sub {
    margin-bottom: 25px;
  }

  .legal {
    font-size: 11px;
  }

  .copyright {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
    font-size: 10px;
    text-align: left;
    white-space: normal;
  }
}


/* 15 — SMALL PHONES / 360px OPTIMIZATION */

@media (max-width: 390px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .brand-text,
  .brand-text strong {
    font-size: 12px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .lang-switch button {
    min-width: 29px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .hero {
    min-height: 750px;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .hero h1 {
    font-size: clamp(39px, 10.5vw, 43px);
  }

  .hero .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .network li {
    padding: 15px;
  }

  .network li strong {
    font-size: 19px;
  }

  .network li span {
    font-size: 10px;
  }

  .contact-list li > a:not(.small-link),
  .contact-list li > span:not(.contact-label) {
    font-size: 21px;
  }
}


/* 16 — ACCESSIBILITY / PERFORMANCE */

@media (hover: none) {
  .card:hover,
  .btn:hover,
  .steps li:hover .step-num {
    transform: none;
  }

  .card:hover {
    box-shadow: 0 4px 18px rgba(30, 46, 34, .025);
  }

  .card:hover::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body,
  .section,
  .section-alt,
  .section-dark,
  .hero,
  .site-footer {
    background: #fff !important;
    color: #111 !important;
  }

  .hero h1,
  .section h2,
  .section-dark h2,
  .network li strong,
  .footer-brand {
    color: #111 !important;
  }

  .hero .lead,
  .section-dark .lead,
  .site-footer p {
    color: #333 !important;
  }

  .main-nav,
  .lang-switch,
  .hero-hills {
    display: none !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-block: 70px;
  }

  .section {
    padding-block: 45px;
  }

  .card,
  .network li,
  .steps li {
    break-inside: avoid;
  }
}


/* ==========================================================
   Logo (ChatGPT-generated emblem, transparent PNG/WebP)
   ========================================================== */
img.brand-mark { width: auto; height: 60px; flex: 0 0 auto; object-fit: contain; }
.about-logo { display: block; width: min(100%, 420px); height: auto; margin-top: 32px; }
@media (max-width: 900px) { img.brand-mark { height: 50px; } .about-logo { width: min(100%, 320px); margin-top: 20px; } }
@media (max-width: 520px) { img.brand-mark { height: 44px; } }

/* ==========================================================
   ECQ group crest (from ecqnext.com brand)
   ========================================================== */
.ecq-band-crest { display: block; width: 74px; height: auto; flex: 0 0 auto; }
.network-brand {
  display: inline-flex; align-items: center; gap: 18px; margin-bottom: 34px;
  color: inherit; text-decoration: none; transition: opacity .3s ease;
}
.network-brand:hover { opacity: .8; }
.network-crest { display: block; width: 96px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.network-wordmark {
  font-family: var(--font-body); font-size: 26px; font-weight: 700; letter-spacing: .09em;
  color: var(--gold-400); white-space: nowrap;
}
.network-wordmark b { color: var(--ivory-50); font-weight: 800; }
@media (max-width: 600px) {
  .ecq-band-crest { width: 60px; }
  .network-crest { width: 72px; }
  .network-wordmark { font-size: 21px; }
}

/* ==========================================================
   Flags (hero + network)
   ========================================================== */
.flag { display: block; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.25); }
.hero-flags {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 0; padding: 0; list-style: none;
}
.hero-flags li {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px; border: 1px solid rgba(233, 218, 182, .22); border-radius: 999px;
  background: rgba(252, 250, 245, .07); backdrop-filter: blur(6px);
  color: var(--ivory-50); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: background .3s ease, transform .3s var(--ease);
}
.hero-flags li:hover { background: rgba(252, 250, 245, .14); transform: translateY(-2px); }
.hero-flags .flag { width: 30px; }
.network li .flag { width: 36px; margin-bottom: auto; }

/* ==========================================================
   Manager
   ========================================================== */
.manager { background: linear-gradient(180deg, var(--ivory-50) 0%, var(--ivory-100) 100%); }
.manager-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.manager-photo { position: relative; margin: 0; }
.manager-photo picture { display: block; position: relative; }
.manager-photo picture::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--gold-500); border-radius: 4px;
}
.manager-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 4px; box-shadow: var(--shadow-hover);
}
.manager-photo figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.manager-photo figcaption strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--forest-900); letter-spacing: -.02em; }
.manager-photo figcaption span { color: var(--gold-600); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.manager-body h2 { margin-bottom: 26px; }
.manager-body p { color: var(--muted); }
.manager-body .manager-lead { color: var(--ink); font-size: 1.12rem; }
.manager-quote {
  margin: 34px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold-500);
  font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); font-style: italic; line-height: 1.5; color: var(--forest-800);
}
.manager-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.manager-facts div { padding: 18px 20px; background: var(--ivory-50); }
.manager-facts dt { margin-bottom: 6px; color: var(--gold-600); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.manager-facts dd { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .manager-grid { grid-template-columns: 1fr; }
  .manager-photo { max-width: 380px; }
  .hero-flags { margin-top: 32px; gap: 8px; }
  .hero-flags li { padding: 8px 14px 8px 10px; font-size: 13px; }
}
@media (max-width: 520px) {
  .manager-facts { grid-template-columns: 1fr; }
  .manager-photo picture::after { inset: 12px -12px -12px 12px; }
}

/* Hero logo card (wide screens only) */
.hero-card { display: none; }
@media (min-width: 1200px) {
  .hero h1 { max-width: 800px; font-size: clamp(56px, 5vw, 78px); }
  .hero .lead { max-width: 600px; }
  .hero-card {
    position: absolute; z-index: 2; top: 50%; right: max(40px, calc((100vw - var(--container)) / 2 + 20px));
    transform: translateY(-58%);
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    width: 360px; padding: 44px 36px 38px;
    background: linear-gradient(160deg, var(--ivory-50), var(--ivory-200));
    border: 1px solid rgba(211, 180, 122, .55); border-radius: 6px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .35), inset 0 0 0 8px rgba(252, 250, 245, .6), inset 0 0 0 9px rgba(185, 152, 92, .35);
    animation: heroCardIn 1.1s var(--ease) .25s both;
  }
  .hero-card img { display: block; width: 100%; height: auto; }
  .hero-card-line { width: 56px; height: 1px; background: var(--gold-500); }
  .hero-card-tag { margin: 0; color: var(--forest-800); font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
  .hero-card-sub { margin: 0; color: var(--muted); font-size: 12.5px; letter-spacing: .06em; }
}
@keyframes heroCardIn { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-58%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }

/* ==========================================================
   Mobile menu
   ========================================================== */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; padding: 0; border: 1px solid #e4e0d5; border-radius: 5px;
    background: #f1eee6; color: var(--forest-900); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor;
    transition: transform .25s var(--ease), background-color .2s ease;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .lang-switch { margin-left: auto; }
  .header-inner { gap: 12px; }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 8px 20px 18px; background: var(--ivory-50);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20, 39, 28, .12);
  }
  .main-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav.is-open a:last-child { border-bottom: 0; }
}
@media (max-width: 390px) {
  .nav-toggle { width: 36px; height: 36px; }
  .header-inner { gap: 8px; }
}
@media (max-width: 390px) {
  .brand { flex-shrink: 1; }
  img.brand-mark { height: 36px; }
  .brand-text { min-width: 0; white-space: normal; line-height: 1.15; }
  .lang-switch { padding: 3px; }
  .lang-switch button { min-width: 26px; padding-inline: 3px; }
  .nav-toggle { width: 34px; height: 34px; }
}
