/* ==========================================================================
   STRUTTURAL — foglio di stile unico (HTML/CSS nativo)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
}

/* ---------- Variabili ---------- */
:root {
  --green: #A3B26C;
  --green-dark: #5a6738;
  --orange: #B5502A;
  --orange-dark: #9E4423;
  --ink: #26392f;
  --ink-soft: #2f463a;
  --text: #33423a;
  --muted: #55645a;
  --text-on-dark: #d7dfd6;
  --muted-on-dark: #b3c0b6;
  --cream: #f1f4ea;
  --sand: #c9d1b0;
  --line: #dfe5d7;
  --white: #fff;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1240px;
  --shadow: 0 14px 40px rgba(38, 57, 47, 0.12);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section[id] { scroll-margin-top: 40px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.section--dark .eyebrow { color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 15px 30px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  color: var(--white); background: var(--orange);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: scale(0.99); transition-duration: 0.25s; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #b5c282; }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  pointer-events: none;
}
.header-pill {
  pointer-events: auto;
  width: min(1320px, 100% - 32px);
  margin-inline: auto;
  padding: 12px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: var(--radius);
  background: rgba(38, 57, 47, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: padding 0.3s, background 0.3s;
}
.site-header.is-scrolled .header-pill { padding-block: 8px; background: rgba(30, 46, 38, 0.92); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 26px; width: auto; }
@media (max-width: 600px) { .header-pill .logo img { height: 20px; } }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list > li { position: relative; }
.nav__link {
  display: block; padding: 10px 14px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--green); }
.header-cta { padding: 13px 22px; }
.nav__cta { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 5px auto;
  background: var(--white); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: var(--white); background: var(--ink); overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 36, 29, 0.72) 0%, rgba(22, 36, 29, 0.25) 60%, rgba(22, 36, 29, 0.05) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 60px) 0 100px;
}
.hero__kicker {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  max-width: 780px; color: var(--white); text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -0.01em;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }
.video-link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.video-link__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink); transition: transform 0.25s;
}
.video-link:hover .video-link__icon { transform: scale(1.1); }
.video-link__icon svg { width: 18px; height: 18px; margin-left: 3px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; gap: 2px; justify-content: center; }
.hero__dots button {
  box-sizing: content-box; width: 34px; height: 4px; padding: 20px 5px; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); background-clip: content-box; transition: background 0.3s, width 0.3s;
}
.hero__dots button.is-active { background-color: var(--green); width: 56px; }
.hero__pause {
  position: absolute; z-index: 3; right: 20px; bottom: 16px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
  background: rgba(38, 57, 47, 0.45); color: var(--white); cursor: pointer; transition: background 0.25s var(--ease-out);
}
.hero__pause:hover { background: var(--white); color: var(--ink); }
.hero__pause svg { width: 16px; height: 16px; }
.hero__pause .icon-play, .hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Banner interno ---------- */
.page-banner {
  position: relative; min-height: 440px;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 80px) 0 64px;
  color: var(--white); background: var(--ink) center / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 36, 29, 0.55), rgba(22, 36, 29, 0.65)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.breadcrumb { display: flex; gap: 12px; font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; }
.breadcrumb li + li::before { content: "/"; margin-right: 12px; opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--green); }

/* ---------- Componenti comuni ---------- */
.checklist li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326392f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.checklist span { color: var(--muted); }
.phone-cta { display: flex; align-items: center; gap: 14px; }
.phone-cta__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); }
.phone-cta__icon svg { width: 22px; height: 22px; }
.phone-cta small { display: block; color: var(--muted); line-height: 1.2; }
.phone-cta strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }

.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 6px 24px rgba(38, 57, 47, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { box-shadow: var(--shadow); }

.service-card { text-align: center; padding: 28px 28px 34px; }
.service-card img { width: 190px; height: 190px; object-fit: contain; margin: 0 auto 22px; border-radius: var(--radius); }
.service-card p { color: var(--muted); margin: 0; }
.feature { display: flex; gap: 18px; }
.feature__dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.feature__dot svg { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.image-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.image-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.image-stack > :nth-child(2) img { margin-top: 48px; }
.rounded { border-radius: var(--radius-lg); }

/* Statistiche */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat__value { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; line-height: 1; color: var(--ink); }
.stat__label { display: block; margin-top: 10px; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section--dark .stat__value { color: var(--green); }
.section--dark .stat__label { color: var(--muted-on-dark); }
.stats-band { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.stats-band h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.stats-band h2 span { color: var(--green); }
.stats-band .stats { grid-template-columns: repeat(4, 1fr); }

/* Vantaggi */
.advantage { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.advantage__num { display: block; margin-bottom: 14px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--green); }
.advantage p { margin: 0; color: var(--muted); }
.rating { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.rating strong { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--ink); }
.rating p { margin: 0; max-width: 260px; color: var(--muted); line-height: 1.45; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(163, 178, 108, 0.3); outline: 0; }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--orange); }
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; color: var(--green-dark); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--orange-dark); }
.form-status.is-success { color: var(--green-dark); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--orange); }
.field__error { margin: 6px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--orange-dark); }
.consent.is-invalid { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.consent + .field__error { margin: -6px 0 14px; }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.consent { display: flex; gap: 12px; align-items: center; min-height: 44px; margin-bottom: 14px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green-dark); }
.quote-box { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }

/* Testimonianze */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.slider__nav button {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s;
}
.slider__nav button:hover { background: var(--green); border-color: var(--green); }
.slider__nav svg { width: 18px; height: 18px; }
.testimonial { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 6px 24px rgba(38, 57, 47, 0.07); }
.testimonial__quote { position: relative; flex: 1; margin: 0 0 24px; font-size: 1.05rem; }
.testimonial__quote::before { content: "\201C"; display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 4rem; line-height: 0.7; color: var(--orange); }
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__author strong { display: block; font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
.testimonial__author span { font-size: 0.9rem; color: var(--muted); }

/* Newsletter */
.newsletter { padding: 64px 0; background: var(--green); color: var(--ink); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 240px; padding: 15px 18px; border: 0; border-radius: var(--radius); background: var(--white); }
.newsletter .btn { background: var(--ink); color: var(--white); }
.newsletter .btn:hover { background: #000; }
.newsletter label { display: flex; gap: 10px; align-items: flex-start; flex-basis: 100%; font-size: 0.85rem; }
.newsletter label input { margin-top: 5px; accent-color: var(--ink); }

/* Team */
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 422 / 500; object-fit: cover; }
.member__info { padding: 22px 16px 26px; }
.member h4 { margin-bottom: 4px; }
.member p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Galleria */
.gallery-item { position: relative; display: block; margin: 0; font: inherit; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; background: none; text-align: left; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--white);
  background: linear-gradient(0deg, rgba(22, 36, 29, 0.82), transparent);
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(22, 36, 29, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; text-align: center; font-family: var(--font-head); color: var(--white); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* FAQ */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h3 { margin-bottom: 20px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 14px; transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--green); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 64px 22px 26px;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-size: 1.3rem; line-height: 1;
  transition: transform 0.25s, background 0.25s;
}
.faq details[open] summary::after { content: "\2212"; background: var(--green); }
.faq__body { padding: 0 26px 24px; }
.faq__body li { position: relative; margin-bottom: 10px; padding-left: 20px; }
.faq__body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.faq__body strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags li { padding: 8px 18px; border-radius: 99px; background: var(--cream); font-family: var(--font-head); font-size: 0.9rem; color: var(--ink); }

/* Contatti */
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--green-dark); }
.contact-list a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.contact-list a:hover { color: var(--green-dark); }
.map { width: 100%; height: 480px; border: 0; display: block; filter: grayscale(0.3); }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--text-on-dark); }
.office img { width: 100%; height: 100%; object-fit: cover; }
.office__body { padding: clamp(28px, 5vw, 64px); }
.office__body h2 { color: var(--white); }

/* Promo / video */
.promo { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.promo__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.promo h2 { color: var(--white); }
.promo img { max-width: 320px; margin: 0 auto; }
.promo p { color: var(--text-on-dark); font-size: 1.1rem; }

/* 404 */
.error-page { text-align: center; }
.error-page__code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: 1; color: var(--green); }

/* Footer */
.site-footer { background: var(--ink); color: #9aa29a; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.site-footer h4 { margin-bottom: 20px; font-size: 1.1rem; color: var(--white); }
.site-footer p { font-size: 0.95rem; }
.site-footer .logo { margin-bottom: 20px; }
.footer-links li { margin-bottom: 0; }
.footer-links a { display: inline-block; padding: 12px 0; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; }
.footer-contact a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--green); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.footer-social a:hover { background: var(--green); color: var(--ink); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; text-align: center; }

/* Animazioni all'ingresso
   Regole: tween cubic-bezier(0.22,1,0.36,1), opacità 0→1.
   - Hero: 0.8s al mount, nessun ritardo.
   - Scroll reveal: 1s con 0.1s di ritardo dall'ingresso in viewport, nessun replay.
   - Testi/gruppi misti/collezioni card: partono 12px più in basso (8px su telefono).
   - Media isolati (.reveal--media): scale 0.98→1, nessuna traslazione.
   - .reveal--stagger: solo 2–4 fratelli che comunicano una progressione, 0.1s tra un avvio e l'altro.
   - .reveal--tall: gruppi più alti del viewport, soglia 0 (gestita in main.js). */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --reveal-travel: 12px; }
.reveal { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--stagger { opacity: 1; transform: none; transition: none; }
.reveal--stagger > * { opacity: 0; transform: translateY(var(--reveal-travel)); transition: opacity 1s var(--ease-out) 0.1s, transform 1s var(--ease-out) 0.1s; }
.reveal--stagger > :nth-child(2) { transition-delay: 0.2s; }
.reveal--stagger > :nth-child(3) { transition-delay: 0.3s; }
.reveal--stagger > :nth-child(4) { transition-delay: 0.4s; }
.reveal--stagger.is-visible > * { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(var(--reveal-travel)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--stagger > * { opacity: 1; transform: none; transition: none; }
  .hero__content { animation: none; }
  .hero__slide { transition: none; }
  .btn, .card, .gallery-item img, .footer-social a, .video-link__icon { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav__link { padding: 10px 10px; font-size: 0.74rem; }
}
@media (max-width: 1200px) {
  /* Sotto 1200px il menu passa a hamburger: con 7 voci più la CTA la pill andrebbe a capo.
     La CTA resta nell'header fino a 640px ed è sempre presente anche dentro il menu. */
  .nav-toggle, .header-pill .logo { position: relative; z-index: 2; }
  .nav-toggle { display: block; }
  /* Menu a tutta pagina: copre l'intera viewport, voci centrate in verticale, CTA in fondo. */
  .nav {
    position: fixed; inset: 0; width: 100%; margin: 0; padding: calc(var(--header-h) + 24px) 28px 32px;
    background: var(--ink); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s; overflow-y: auto; pointer-events: auto;
    display: flex; flex-direction: column;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin: auto 0; width: 100%; max-width: 560px; align-self: center; }
  .nav__link { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: clamp(1.05rem, 3.6vw, 1.35rem); }
  .nav__cta { display: block; margin-top: 32px; }
  .nav__cta .btn { width: 100%; }
  .header-cta { margin-left: auto; padding: 13px 18px; }
}
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slider__track { grid-auto-columns: calc((100% - 28px) / 2); }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .header-pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(38, 57, 47, 0.95); }
  .split, .newsletter__inner, .promo__inner, .office { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .image-stack > :nth-child(2) img { margin-top: 0; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  :root { --reveal-travel: 8px; }
  .reveal--stagger > :nth-child(n) { transition-delay: 0.1s; }
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .slider__track { grid-auto-columns: 88%; }
  .header-pill { padding: 10px 14px 10px 18px; }
  .hero__actions { gap: 16px; }
  .map { height: 340px; }
}

/* Link testuale con freccia: azione secondaria accanto al pulsante primario */
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  font-family: var(--font-head); font-size: 0.9rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--green);
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}
.link-arrow::after { content: " \2192"; margin-left: 4px; }
.link-arrow:hover { color: var(--green-dark); text-decoration-color: var(--green-dark); }
.section--dark .link-arrow, .hero .link-arrow, .office .link-arrow { color: var(--white); }
.section--dark .link-arrow:hover, .hero .link-arrow:hover, .office .link-arrow:hover { color: var(--green); }

/* Realizzazioni: card progetto (riquadro neutro finché non arrivano le foto) */
.project__media { aspect-ratio: 4 / 3; margin-bottom: 20px; border-radius: var(--radius-lg); background: repeating-linear-gradient(90deg, var(--ink) 0 46px, var(--ink-soft) 46px 48px); }
.project__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.project h3 { margin-bottom: 6px; }
.project__meta { margin: 0; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Servizi: dettagli espandibili "Scopri di più" */
.service-more { margin-top: clamp(32px, 4vw, 48px); padding: 0 clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.service-more summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.service-more summary::-webkit-details-marker { display: none; }
.service-more summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); font-size: 1.2rem; letter-spacing: 0; }
.service-more[open] summary::after { content: "\2212"; }
.service-more summary:hover { color: var(--green-dark); }
.service-more__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 48px; padding-top: 32px; }
.service-more__intro, .service-more__body .cta-row { grid-column: 1 / -1; }
.service-more__intro { max-width: 820px; font-size: 1.1rem; color: var(--ink); }
.subservice h3 { margin-bottom: 14px; }
.service-list { margin: 0 0 1em; }
.service-list li { position: relative; margin-bottom: 8px; padding-left: 20px; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Moduli Contatti / Collabora: gruppi di scelte a pulsante e nota allegati */
.form-box { max-width: 920px; margin-inline: auto; }
.form-box .lead { margin-bottom: 28px; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 6px; padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.choice-group__hint { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 0.95rem; color: var(--ink); transition: background 0.2s, border-color 0.2s; }
.choice input[type="checkbox"] + span::before { content: ""; width: 14px; height: 14px; margin-right: 10px; border: 1.5px solid var(--muted); border-radius: 3px; }
.choice input:checked + span { background: var(--green); border-color: var(--green); }
.choice input[type="checkbox"]:checked + span::before { content: "\2713"; display: grid; place-items: center; font-size: 0.7rem; line-height: 1; border-color: var(--ink); }
.choice input:hover + span { border-color: var(--green-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.choice-group.is-invalid .choice span { border-color: var(--orange); }
.attach-note { padding: 20px 22px; border: 1px dashed var(--sand); border-radius: var(--radius); background: var(--cream); }
.attach-note p { margin: 0 0 6px; font-size: 0.95rem; }
.attach-note__title { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.attach-note p.attach-note__formats { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Servizi: card visive dei sottoservizi */
.phase { padding-top: 0; }
.photo-band { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 72vh, 720px); padding: clamp(48px, 7vw, 88px) 0; overflow: hidden; background: var(--ink); color: var(--text-on-dark); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 57, 47, 0.15) 10%, rgba(38, 57, 47, 0.7) 45%, rgba(38, 57, 47, 0.95) 90%); }
.photo-band > .container { position: relative; z-index: 1; }
.photo-band h2 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4rem); color: var(--white); }
.photo-band .lead { max-width: 680px; color: var(--white); }
.photo-band .eyebrow { color: var(--green); }
.photo-band--center { align-items: center; }
.photo-band--center::after { background: rgba(38, 57, 47, 0.82); }
.photo-band--center h2 { max-width: none; }
.photo-band--center .lead { margin-inline: auto; }
.phase-card { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.phase-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.phase-card:hover img, .phase-card:focus-within img { transform: scale(1.07); }
.phase-card > div { position: relative; width: 100%; padding: 70px 24px 24px; background: linear-gradient(180deg, rgba(38, 57, 47, 0), rgba(38, 57, 47, 0.95) 45%); }
.phase-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.phase-card a { color: var(--white); }
.phase-card a::after { content: ""; position: absolute; inset: 0; }
.phase-card p { margin: 0; color: var(--white); font-size: 0.95rem; }
.subservice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.subservice-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.subservice-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.subservice-card:hover img, .subservice-card:focus-within img { transform: scale(1.07); }
.subservice-card__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: linear-gradient(180deg, rgba(38, 57, 47, 0) 35%, rgba(38, 57, 47, 0.95) 85%); }
.subservice-card .eyebrow { margin-bottom: 8px; color: var(--green); }
.subservice-card h3 { margin: 0; font-size: 1.35rem; color: var(--white); }
.subservice-card details > :not(summary) { display: none; }
.subservice-card summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; cursor: pointer; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.subservice-card summary::-webkit-details-marker { display: none; }
.subservice-card summary::before { content: ""; position: absolute; inset: 0; }
.subservice-card summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 1.2rem; transition: transform 0.3s var(--ease-out); }
.subservice-card:hover summary::after { transform: rotate(90deg); }
.service-dialog { width: min(1040px, 100% - 32px); max-height: 88vh; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--text); }
.service-dialog[open] { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: 1fr auto; animation: dialog-in 0.35s var(--ease-out); }
.service-dialog::backdrop { background: rgba(38, 57, 47, 0.8); backdrop-filter: blur(6px); }
.service-dialog > img { grid-row: 1 / 3; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.service-dialog__body { min-height: 0; padding: clamp(24px, 4vw, 44px); overflow-y: auto; }
.service-dialog__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.service-dialog__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(24px, 4vw, 44px); border-top: 1px solid var(--line); font-family: var(--font-head); }
.service-dialog button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.service-dialog button:hover { background: var(--green); }
.service-dialog__close { position: absolute; top: 12px; right: 12px; }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .service-dialog[open] { grid-template-columns: 1fr; grid-template-rows: 200px 1fr auto; }
  .service-dialog > img { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .subservice-card img, .subservice-card summary::after, .phase-card img { transition: none; }
  .subservice-card:hover img, .subservice-card:focus-within img, .phase-card:hover img, .phase-card:focus-within img { transform: none; }
  .service-dialog[open] { animation: none; }
}
.service-more__intro { padding: 4px 0 24px; }

/* Pagina "Sito in costruzione": video a tutto schermo con testo sovrapposto */
.uc { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: transparent; color: var(--white); overscroll-behavior: none; }
/* Sfondo solo su html: se lo avesse anche body coprirebbe video e velo (z-index negativi) */
html:has(.uc) { background: var(--ink); }
.uc::before { content: ""; position: fixed; top: -15vh; left: 0; right: 0; height: 130vh; height: 130lvh; z-index: -1; background: linear-gradient(180deg, rgba(38, 57, 47, 0.55), rgba(38, 57, 47, 0.85)); }
.uc__video { position: fixed; top: -15vh; left: 0; z-index: -2; width: 100%; height: 130vh; height: 130lvh; object-fit: cover; }
/* Velo e video sbordano sopra e sotto: Safari iOS disegna la pagina anche sotto le barre del browser */
.uc__main { width: min(760px, 100% - 32px); padding: 64px 0; text-align: center; }
.uc__logo { width: clamp(180px, 28vw, 260px); height: auto; margin: 0 auto 40px; filter: brightness(0) invert(1); }
.uc .eyebrow { color: var(--green); }
.uc h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); color: var(--white); }
.uc .lead { color: var(--white); }
.uc .cta-row { justify-content: center; }
.uc .btn--ghost { border-color: var(--white); }
.uc__address { margin-top: 40px; font-size: 0.9rem; color: var(--white); opacity: 0.85; }
.uc__address a { color: var(--white); }
.uc__social { justify-content: center; margin-top: 24px; }
