/* ==========================================================================
   Anero' Decalcomanie - foglio di stile principale
   Indice: 1 Font e token · 2 Base · 3 Layout · 4 Componenti · 5 Header/nav
           6 Sezioni · 7 Modulo · 8 Footer · 9 Pagine interne · 10 Animazioni
   ========================================================================== */

/* 1. Font e token ---------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colore del logo: #11809b */
  --teal: #11809b;
  --teal-600: #0e6f86;
  --teal-700: #0b5a6d;
  --teal-800: #094a5a;
  --teal-300: #7fcadb;
  --teal-100: #dcedf1;
  --teal-50: #eff7f8;
  --ink: #12191d;
  --ink-800: #1a2429;
  --ink-700: #2a373d;
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --white: #ffffff;
  --mist: #eef2f2;
  --line: #dde4e5;
  --line-dark: rgba(255, 255, 255, .14);
  --text: #12191d;
  --text-muted: #4c5a60;
  --text-on-dark: #e8eef0;
  --muted-on-dark: #a9b8bd;
  --gold: #b08d57;
  --gold-light: #d6bb8a;
  --danger: #b3261e;
  --danger-bg: #fdf1f0;
  --success: #12704f;
  --whatsapp: #1f8f4e;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(1rem, .96rem + .18vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  --fs-h1: clamp(2.05rem, 1.35rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.875rem);
  --fs-h3: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);

  --radius: 3px;
  --radius-lg: 3px;
  --shadow-sm: none;
  --shadow: none;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 1240px;
  --header-h: 68px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
strong { font-weight: 700; }

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--teal-800); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.section--teal :focus-visible,
.manifesto :focus-visible,
.quote-cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

::selection { background: var(--teal-100); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

main:focus { outline: none; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--teal { background: var(--teal-700); color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  display: grid;
  gap: 1.5rem 4rem;
  max-width: none;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; }
}
.section-head__intro { color: var(--text-muted); max-width: 34rem; }
.section-head__intro strong { color: var(--text); font-weight: 650; }
.section-head__lead { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; }

.section-title { font-size: var(--fs-h2); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow__mark { width: 1.1rem; height: 1.1rem; color: var(--teal); }
.eyebrow--light { color: var(--teal-300); }
.eyebrow--light .eyebrow__mark { color: var(--teal-300); }
.section--teal .eyebrow--light,
.section--teal .eyebrow--light .eyebrow__mark { color: #bfe5ee; }

.text-accent { color: var(--teal); }
.section--teal .text-accent { color: var(--teal-300); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); font-weight: 500; }

/* 4. Componenti ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: var(--white);
  --btn-bd: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(110%); }

.btn--primary { --btn-bg: var(--teal-700); --btn-bd: var(--teal-700); }
.btn--primary:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(18, 25, 29, .28); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--teal-100); --btn-bd: var(--teal-100); --btn-fg: var(--ink); }

.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-700);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover .icon { transform: translateX(3px); }

.social-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-list__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem 1rem .5rem .8rem;
  font-weight: 650;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.social-list__link:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

/* 5. Header e navigazione -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Lo sfondo "vetro" è su uno pseudo-elemento: un backdrop-filter sull'header
   diventerebbe il riferimento del pannello fixed del menu mobile. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .94);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header::before { background: rgba(255, 255, 255, .84); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
}
.nav-open .site-header::before { background: var(--white); }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand { display: block; flex-shrink: 0; margin-right: auto; border-radius: 4px; }
.brand img { width: auto; height: 42px; }
@media (min-width: 1100px) { .brand img { height: 54px; } }

.site-header__cta { display: none; }
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--mist); }
.nav-toggle__bars { position: relative; display: block; width: 22px; height: 14px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Navigazione mobile (pannello) */
@media (max-width: 1099.98px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .site-nav__list { display: grid; }
  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: .5rem 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__link::after {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .2s, transform .2s;
  }
  .site-nav__link.is-active::after { opacity: 1; transform: none; }
  .site-nav__link:hover { color: var(--teal-700); }
  .site-nav__extra { display: grid; gap: 1.5rem; }
  .site-nav__contacts { display: grid; gap: .25rem; }
  .site-nav__contacts a {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .site-nav__contacts .icon { color: var(--teal); }

  /* Senza JavaScript il menu resta visibile come elenco semplice */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; border: 0; width: 100%; }
  html:not(.js) .site-nav__list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .site-nav__link { font-size: 1rem; min-height: 44px; border: 0; }
  html:not(.js) .site-nav__extra { display: none; }
}

/* Navigazione desktop */
@media (min-width: 1100px) {
  .nav-toggle, .site-nav__extra { display: none; }
  .site-nav { margin-right: .5rem; }
  .site-nav__list { display: flex; align-items: center; gap: .15rem; }
  .site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .8rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius);
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: 6px;
    height: 1.5px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .site-nav__link:hover { color: var(--teal-700); }
  .site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
  .site-nav__link.is-active { color: var(--teal-700); }
}

/* 6. Sezioni --------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 128, 155, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 128, 155, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}
.hero__title { font-size: var(--fs-h1); font-weight: 650; line-height: 1.06; letter-spacing: -.03em; max-width: 19ch; }
.hero__lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.55; font-weight: 500; max-width: 36rem; }
.hero__text { color: var(--text-muted); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 479.98px) { .hero__actions .btn { width: 100%; } }
.hero__facts {
  display: grid;
  gap: .9rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(18, 25, 29, .12);
}
@media (min-width: 640px) { .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.hero__facts .icon { width: 1.4rem; height: 1.4rem; color: var(--teal); margin-top: -.05rem; }

.hero__art { width: 100%; max-width: 520px; margin-inline: auto; }
@media (max-width: 959.98px) { .hero__art { max-width: 380px; } }
.hero-art { width: 100%; height: auto; overflow: visible; }

/* Azienda */
.about__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.about__stat {
  position: relative;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 24rem;
  background: var(--paper);
  border-radius: var(--radius);
}
.about__stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--teal);
  border-radius: var(--radius);
  transform: translate(10px, 10px);
  pointer-events: none;
}
.about__stat-num {
  margin: 0 0 .25rem;
  font-size: clamp(4.5rem, 3rem + 6vw, 7rem);
  font-weight: 250;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--teal-700);
}
.about__stat-plus { color: var(--gold); font-weight: 400; }
.about__stat-label { font-weight: 600; line-height: 1.45; margin: 0; }
.about__body { display: grid; gap: 2.5rem; }
.prose p { color: var(--text-muted); }
.prose .lead { color: var(--text); }
.about__panel { padding-top: 2rem; border-top: 1px solid var(--line); }
.about__panel-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.005em; }
.about__materials { display: flex; flex-wrap: wrap; gap: .25rem 0; margin-top: 2.25rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
.about__materials li + li::before { content: "/"; margin: 0 .6em; color: var(--teal); font-weight: 400; }
.strengths { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strength { position: relative; padding: 1.25rem 1.25rem 1.35rem; background: rgba(247, 244, 238, .72); transition: background-color .35s var(--ease); }
.strength::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.strength:hover { background: rgba(220, 237, 241, .6); }
.strength:hover::after { transform: scaleX(1); }
.strength__num { display: block; margin-bottom: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); }
.strength__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; }
.strength p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--text-muted); }
.about__vision { margin: 1.75rem 0 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--gold); }
.about__vision p { margin: 0; font-size: 1.125rem; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.about__area { display: flex; gap: .65rem; margin-top: 1.5rem; font-size: .9375rem; color: var(--text-muted); }
.about__area .icon { color: var(--teal); margin-top: .15rem; }

/* Manifesto */
.manifesto {
  position: relative;
  padding-block: clamp(5rem, 3.5rem + 8vw, 10rem);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.manifesto::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 140%;
  background-image: radial-gradient(rgba(127, 202, 219, .22) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.manifesto::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px dashed rgba(255, 255, 255, .12);
}
.manifesto__mark { position: absolute; width: 28px; height: 28px; color: rgba(255, 255, 255, .3); }
.manifesto__mark .icon { width: 100%; height: 100%; }
.manifesto__mark--tl { top: clamp(1.25rem, 3vw, 2.5rem); left: clamp(1rem, 3vw, 2.5rem); }
.manifesto__mark--br { bottom: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1rem, 3vw, 2.5rem); }
.manifesto__inner > * { max-width: 1100px; }
.manifesto__quote {
  font-size: clamp(2rem, 1rem + 4.4vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.manifesto__line { display: block; overflow: hidden; padding-bottom: .08em; }
.manifesto__line > span { display: block; }
.manifesto__line:first-child { color: var(--muted-on-dark); }
.manifesto__line--strong { color: var(--white); font-weight: 600; margin-top: .15em; }
.manifesto__key { position: relative; font-style: normal; color: var(--teal-300); white-space: nowrap; }
.manifesto__swash {
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  width: 100%;
  height: .22em;
  color: var(--gold-light);
  overflow: visible;
}
.manifesto__swash path { stroke-dasharray: 300; stroke-dashoffset: 0; }
.manifesto__text {
  max-width: 40rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted-on-dark);
}

/* Servizi */
.services__head { display: grid; gap: 1.5rem 7%; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 768px) { .services__head { grid-template-columns: 1.15fr .85fr; align-items: end; } }
.services__title { font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.7rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; max-width: 22ch; }
.services__intro { padding-bottom: .35rem; }
.services__intro-lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.5; letter-spacing: -.02em; color: var(--ink); }
.services__intro p:not(.services__intro-lead) { color: var(--text-muted); }
.services__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.service-card { display: flex; }
.service-card article {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px 25px 28px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid #e1e5de;
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .4s var(--ease), background-color .3s var(--ease);
}
.service-card:hover article, .service-card:focus-within article { border-color: #91b5b5; background: var(--white); transform: translateY(-4px); }
@media (min-width: 1024px) { .service-card article { padding: 28px; } }
@media (min-width: 1600px) { .service-card article { padding: 35px; } }
.service-card__top { display: flex; align-items: center; justify-content: space-between; min-height: 68px; margin-bottom: 24px; }
.service-card__num { align-self: flex-start; font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.service-card__title { font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; max-width: 21ch; margin-bottom: 20px; }
@media (min-width: 1024px) { .service-card__title { font-size: 1.55rem; min-height: 2.6em; } }
@media (min-width: 1180px) { .service-card__title { font-size: 1.7rem; } }
.service-card p { font-size: .94rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
.service-card__detail { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.service-card .service-card__label { margin: 0; font-size: .67rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--teal-700); }
.service-card .service-card__apps { margin: 5px 0 0; font-size: .81rem; line-height: 1.7; }
.service-card__cta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; font-size: .82rem; font-weight: 700; line-height: 1.5; color: var(--ink); text-decoration: none; }
.service-card__cta:hover { color: var(--teal-700); }
.service-card__cta-arrow { flex-shrink: 0; transition: transform .3s var(--ease); }
.service-card__cta:hover .service-card__cta-arrow { transform: translate(3px, -3px); }

/* Simboli geometrici a strati delle card */
.service-mark { position: relative; flex-shrink: 0; width: 82px; height: 68px; overflow: hidden; }
.service-mark span {
  position: absolute;
  left: 12px; top: 10px;
  width: 46px; height: 46px;
  border: 1px solid var(--teal);
  background: var(--teal-50);
  transform: rotate(-14deg);
  transition: translate .6s var(--ease), opacity .6s var(--ease);
}
.service-mark span:nth-child(2) { left: 22px; top: 16px; background: rgba(17, 128, 155, .32); transform: rotate(9deg); }
.service-mark span:nth-child(3) { left: 32px; top: 22px; background: var(--teal); transform: rotate(-6deg); }
.service-mark--surface span:nth-child(n) { border-radius: 50%; background: transparent; transform: none; }
.service-mark--surface span:nth-child(3) { border-width: 10px; }
.service-mark--technical span:nth-child(n) { width: 54px; height: 40px; transform: none; background: repeating-linear-gradient(90deg, var(--teal) 0 2px, transparent 2px 6px); }
.service-mark--technical span:nth-child(2) { background: var(--paper); }
.service-mark--space span:nth-child(n) { width: 40px; height: 60px; left: 10px; top: 8px; transform: skewY(-15deg); background: none; }
.service-mark--space span:nth-child(2) { left: 28px; top: 12px; }
.service-mark--space span:nth-child(3) { left: 46px; top: 16px; background: var(--teal); }
.service-mark--object span:nth-child(n) { border-radius: 50% 50% 0 0; transform: rotate(-20deg); background: none; }
.service-mark--object span:nth-child(3) { background: var(--teal); }
.service-mark--special span:nth-child(n) { width: 90px; height: 50px; top: 5px; border-radius: 50%; transform: rotate(-20deg); background: none; }
.service-mark--special span:nth-child(2) { top: 16px; }
.service-mark--special span:nth-child(3) { top: 27px; }
/* al passaggio del mouse gli strati si separano */
.service-card:hover .service-mark span:nth-child(1) { translate: -4px -3px; }
.service-card:hover .service-mark span:nth-child(3) { translate: 4px 3px; }

/* Settori */
.sectors__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .sectors__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 5rem; }
  .sectors__head { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}
.sectors__intro { margin-top: 1.5rem; color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.55; }
.sectors__closing {
  position: relative;
  margin-top: 2.25rem;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--paper);
  border-radius: var(--radius);
}
.sectors__closing::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem; bottom: 1rem;
  width: 3px;
  background: var(--teal);
  border-radius: 0 3px 3px 0;
}
.sectors__list { border-top: 1px solid var(--line); }
.sector {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .sector { grid-template-columns: 4rem minmax(0, 1fr); padding-block: 1.9rem; } }
.sector::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.sector:hover::after { transform: scaleX(1); }
.sector__num { font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); padding-top: .2rem; }
.sector__title { font-size: var(--fs-h3); margin-bottom: .5rem; }
.sector p { color: var(--text-muted); }

/* Perché Anero' */
.why { overflow: hidden; isolation: isolate; }
.why::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.why .section-title { color: var(--white); }
.why__grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-item { padding: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); background: rgba(11, 90, 109, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background-color .4s var(--ease); }
.why-item:hover { background: rgba(9, 74, 90, .9); }
.why-item__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
}
.why-item__icon .icon { width: 1.45rem; height: 1.45rem; }
.why-item__title { font-size: var(--fs-h3); margin-bottom: .85rem; color: var(--white); }
.why-item p { color: #d3e7ec; font-size: .96875rem; }

/* Come lavoriamo */
.process__steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 2.25rem 4.25rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3.25rem;
  bottom: .5rem;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--teal) 0 5px, transparent 5px 10px);
  opacity: .55;
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--teal-700);
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
}
.step:last-child .step__num { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.step__title { font-size: var(--fs-h3); margin: .55rem 0 .6rem; }
.step p { color: var(--text-muted); font-size: .96875rem; max-width: 36rem; }

@media (min-width: 1024px) {
  .process__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
  .step { padding: 4.5rem 0 0; }
  .step::before { left: 3.75rem; right: -1.75rem; top: 1.5rem; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(to right, var(--teal) 0 5px, transparent 5px 10px); }
  .step:last-child::before { display: none; }
  .step__title { margin-top: 0; }
}

/* CTA preventivo */
.quote-cta {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.quote-cta::before, .quote-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.quote-cta::before {
  right: -6rem; top: -5rem;
  width: 22rem; height: 26rem;
  background: var(--teal);
  transform: rotate(12deg);
  opacity: .9;
}
.quote-cta::after {
  right: -3.5rem; top: -2.5rem;
  width: 20rem; height: 24rem;
  border: 1px dashed rgba(255, 255, 255, .35);
  transform: rotate(4deg);
}
@media (max-width: 959.98px) {
  .quote-cta::before { right: -15rem; top: auto; bottom: -19rem; opacity: .5; }
  .quote-cta::after { display: none; }
}
.quote-cta__inner { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .quote-cta__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.quote-cta__title { font-size: var(--fs-h2); color: var(--white); margin-bottom: 1.5rem; max-width: 18ch; }
.quote-cta__content p { color: var(--muted-on-dark); max-width: 36rem; font-size: var(--fs-lead); line-height: 1.55; }
.quote-cta__action { display: grid; gap: 1rem; justify-items: start; }
@media (max-width: 479.98px) { .quote-cta__action .btn { width: 100%; } }
.quote-cta__micro { font-size: .9375rem; color: var(--muted-on-dark); max-width: 22rem; padding-left: 1rem; border-left: 2px solid var(--gold); }

/* 7. Modulo ---------------------------------------------------------------- */
.quote__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .quote__grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4.5rem; align-items: start; } }
@media (min-width: 1240px) { .quote__grid { grid-template-columns: minmax(0, 1fr) 24rem; } }
.quote .section-head { margin-bottom: 2.25rem; }

.form-note { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 640px) {
  .field--half { grid-column: span 3; }
  .field--third { grid-column: span 2; }
  .field--two-thirds { grid-column: span 4; }
}
@media (min-width: 640px) and (max-width: 1023.98px), (min-width: 1024px) and (max-width: 1139.98px) {
  /* colonne strette: telefono, misure e quantità su righe più ampie */
  .field--third { grid-column: span 3; }
  .field--two-thirds { grid-column: span 3; }
  .field[data-field="citta"] { grid-column: span 3; }
  .field[data-field="quantita"] { grid-column: 1 / -1; }
}
.field__label { margin-bottom: .45rem; font-size: .9375rem; font-weight: 650; }
.field__req { color: var(--teal-700); font-weight: 700; }

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 1rem; /* 16px: evita lo zoom automatico su iOS */
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #87969b;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #67747a; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: #5f6e74; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(17, 128, 155, .16);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); background: var(--danger-bg); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .14); }
.field.is-valid input, .field.is-valid textarea { border-color: #8cc5b0; }

.field__error {
  display: flex;
  gap: .4rem;
  align-items: flex-start;
  margin: .45rem 0 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--danger);
}
.field__error:empty { display: none; }
.field__error .icon { width: 1.05rem; height: 1.05rem; margin-top: .05rem; }

.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: .6rem; }
.field__hint {
  display: flex;
  gap: .65rem;
  margin: 0;
  padding: .85rem 1rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--teal-50);
  border-radius: var(--radius);
}
.field__hint strong { color: var(--ink); font-weight: 700; }
.field__hint .icon { color: var(--teal); width: 1.2rem; height: 1.2rem; margin-top: .1rem; }
.field__counter { flex-shrink: 0; font-size: .8125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.field__counter.is-near { color: var(--danger); font-weight: 700; }
@media (max-width: 479.98px) {
  .field__meta { flex-direction: column-reverse; gap: .4rem; }
  .field__counter { align-self: flex-end; }
}

.field--check { margin-top: .25rem; }
.check { display: flex; align-items: flex-start; gap: .8rem; }
.check input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: .1rem 0 0;
  padding: 0;
  border: 1.5px solid #7b8a90;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.check input::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.check input:checked { background: var(--teal-700); border-color: var(--teal-700); }
.check input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.check label { font-size: .96875rem; line-height: 1.5; cursor: pointer; padding-top: .1rem; }
.check label a { font-weight: 700; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 2rem; }
.btn--submit { position: relative; min-width: min(100%, 20rem); }
@media (max-width: 639.98px) { .btn--submit { width: 100%; } }
.btn__spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .btn__spinner { display: inline-block; }
.is-loading .btn--submit .icon { display: none; }
.is-loading .btn--submit { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: flex;
  gap: .85rem;
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  color: #7a1b15;
  background: var(--danger-bg);
  border: 1px solid #f1c5c1;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
}
.form-status[hidden] { display: none; }
.form-status > .icon { color: var(--danger); width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.form-status p { margin: 0; font-weight: 650; white-space: pre-line; }
.form-status ul { margin-top: .5rem; padding-left: 1.1rem; list-style: disc; font-size: .9375rem; }
.form-status a { color: inherit; }

.form-success {
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  animation: rise .5s var(--ease) both;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  background: var(--success);
  border-radius: 50%;
}
.form-success__icon .icon { width: 1.6rem; height: 1.6rem; }
.form-success__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.015em; margin-bottom: .5rem; }
.form-success__hint { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--teal-100); font-size: .9375rem; color: var(--text-muted); }

/* Contatti diretti (accanto al modulo) */
.direct-card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
}
@media (min-width: 1024px) { .quote__aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.direct-card__title { font-size: 1.25rem; margin-bottom: 1.25rem; }
.contact-list { display: grid; gap: .6rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 64px;
  padding: .7rem .9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-link:hover { color: var(--ink); border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-link__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 50%;
}
.contact-link__icon .icon { width: 1.35rem; height: 1.35rem; }
.contact-link__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.contact-link__value { display: block; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.contact-link--email .contact-link__value { font-size: .9375rem; }
.direct-card__hours { display: flex; gap: .6rem; align-items: center; margin-top: 1.25rem; font-size: .9375rem; font-weight: 600; color: var(--text-muted); }
.direct-card__hours .icon { color: var(--teal); }

/* Contatti */
.contacts__grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .contacts__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; } }
.location-card {
  display: grid;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
  grid-template-rows: 1fr auto;
  border-radius: var(--radius-lg);
}
.location-card__map {
  position: relative;
  min-height: 180px;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(127, 202, 219, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 202, 219, .12) 1px, transparent 1px),
    linear-gradient(28deg, transparent 46%, rgba(127, 202, 219, .22) 46.4%, rgba(127, 202, 219, .22) 47.6%, transparent 48%),
    linear-gradient(-62deg, transparent 58%, rgba(127, 202, 219, .16) 58.3%, rgba(127, 202, 219, .16) 59.3%, transparent 59.6%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}
.location-card__pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  color: var(--teal-300);
}
.location-card__pin::after {
  content: "";
  position: absolute;
  inset: 26px;
  background: var(--gold-light);
  border-radius: 50%;
}
.location-card__pin .icon { width: 100%; height: 100%; }
.location-card__body { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); }
.location-card__name { font-size: var(--fs-h3); color: var(--white); margin-bottom: .75rem; }
.location-card__address { font-size: 1.0625rem; line-height: 1.6; color: var(--muted-on-dark); }
.location-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.location-card .btn--primary { --btn-bg: var(--teal); --btn-bd: var(--teal); }
.location-card .btn--primary:hover { --btn-bg: var(--teal-600); --btn-bd: var(--teal-600); }
.location-card .btn--ghost { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .35); }
.location-card .btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
@media (min-width: 640px) and (max-width: 959.98px) { .location-card { grid-template-columns: 1fr 1.3fr; grid-template-rows: none; } .location-card__map { min-height: 100%; } }
@media (min-width: 960px) { .location-card__map { min-height: 220px; } }

.contacts__info { display: grid; gap: 1.5rem; align-content: start; }
.info-block { padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--white); border-radius: var(--radius-lg); }
.info-block__title { font-size: .75rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1rem; }
.info-list { margin: 0; display: grid; gap: .1rem; }
.info-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { font-weight: 600; color: var(--text-muted); }
.info-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.info-list dd a { color: var(--ink); text-decoration-color: var(--teal-300); }
.info-list dd a:hover { color: var(--teal-700); text-decoration-color: currentColor; }

/* Realizzazioni (predisposta) */
.works-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.work-card figure { margin: 0; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.work-card figcaption { margin-top: .75rem; font-weight: 650; }
.work-card__tag { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }

/* 8. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: .9375rem; }
.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.75rem, 2rem + 2vw, 4rem) 2rem;
}
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer__brand { display: grid; gap: 1.25rem; }
.site-footer__logo { display: inline-block; width: fit-content; }
.site-footer__logo img { width: auto; height: 58px; }
.site-footer__legal { margin: 0; line-height: 1.6; }
.site-footer__legal strong { color: var(--white); font-weight: 650; }
.site-footer__nav { display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 860px) { .site-footer__nav { justify-items: end; } }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-on-dark); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.social-list--footer .social-list__link { color: var(--text-on-dark); background: transparent; border-color: rgba(255, 255, 255, .2); }
.social-list--footer .social-list__link:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8125rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--text-on-dark); text-decoration: none; font-weight: 600; }
.site-footer__top:hover { color: var(--white); }
.icon--up { transform: rotate(180deg); width: 1rem; height: 1rem; }

/* Barra mobile contestuale */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  html.js .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: .5rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  html.js .mobile-bar.is-visible { transform: none; }
  html.js body { padding-bottom: 0; }
  .mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
  }
  .mobile-bar__btn .icon { color: var(--whatsapp); }
  .mobile-bar__btn--primary { color: var(--white); background: var(--teal-700); border-color: var(--teal-700); }
  .mobile-bar__btn--primary .icon { color: var(--white); }
  .mobile-bar__btn:hover { color: inherit; }
  .mobile-bar__btn--primary:hover { color: var(--white); }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Galleria ----------------------------------------------------------------- */
.gallery-teaser__head { display: grid; gap: 1.25rem 4rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 960px) { .gallery-teaser__head { grid-template-columns: 1.2fr .8fr; align-items: end; } }
.gallery-teaser__intro { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); }

.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
.mosaic__item--1 { grid-row: span 2; }
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15vw, 230px); gap: 10px; }
  /* 4 colonne x 3 righe senza vuoti */
  .mosaic__item--2, .mosaic__item--6, .mosaic__item--7 { grid-column: span 2; }
  .mosaic__item--3 { grid-row: span 2; }
}
.mosaic__link, .thumb-grid__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.mosaic__link img, .thumb-grid__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.mosaic__link:hover img, .mosaic__link:focus-visible img,
.thumb-grid__link:hover img, .thumb-grid__link:focus-visible img { transform: scale(1.06); filter: saturate(1.08); }
/* velo trasparente con il "+" al passaggio del mouse */
.mosaic__link::after, .thumb-grid__link::after {
  content: "+";
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  background: rgba(17, 128, 155, .35);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.mosaic__link:hover::after, .mosaic__link:focus-visible::after,
.thumb-grid__link:hover::after, .thumb-grid__link:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .mosaic__link::after { display: none; } }
.gallery-teaser__actions { display: flex; justify-content: center; margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.gallery-teaser__count { font-weight: 500; opacity: .8; }
@media (max-width: 479.98px) { .gallery-teaser__actions .btn { width: 100%; } }

/* Pagina galleria */
.gallery-page { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(4rem, 3rem + 4vw, 6rem); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; }
@media (min-width: 768px) { .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } }
.thumb-grid__link { aspect-ratio: 1; height: auto; }
.gallery-page__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); background: var(--paper); border-left: 3px solid var(--teal); }
.gallery-page__cta p { margin: 0; max-width: 36rem; font-size: var(--fs-lead); font-weight: 600; color: var(--ink); }

/* Visualizzatore a tutto schermo */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--white);
  background: rgba(12, 17, 20, .9);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 0;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(12, 17, 20, .35); }
.lightbox[open] { display: flex; flex-direction: column; animation: lb-fade .35s var(--ease); }
html:has(.lightbox[open]) { overflow: hidden; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; flex-shrink: 0; align-items: center; gap: .75rem; padding: .7rem var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lightbox__title { margin: 0 auto 0 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.lightbox__count { font-size: .875rem; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .85rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { font-size: 1.6rem; font-weight: 300; line-height: 1; }
.lightbox__btn .icon { width: 1.15rem; height: 1.15rem; }
.lightbox :focus-visible { outline-color: var(--white); }
.lightbox__grid { flex: 1; min-height: 0; overflow-y: auto; padding: 1.5rem var(--gutter) 3rem; overscroll-behavior: contain; }
.lightbox__grid[hidden], .lightbox__viewer[hidden] { display: none; }
.lightbox__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; margin: 0; }
@media (min-width: 768px) { .lightbox__thumbs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } }
.lightbox__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
  animation: lb-thumb .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .7s var(--ease), opacity .3s; }
.lightbox__thumb:hover img, .lightbox__thumb:focus-visible img { opacity: 1; transform: scale(1.06); }
@keyframes lb-thumb { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lightbox__viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1rem clamp(3.75rem, 7vw, 6rem); touch-action: pan-y; }
.lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); animation: lb-img .45s var(--ease); }
.lightbox__img.is-loading { opacity: .35; }
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; padding: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox__nav--prev { left: max(.75rem, var(--gutter)); }
.lightbox__nav--next { right: max(.75rem, var(--gutter)); }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
@media (max-width: 599.98px) {
  .lightbox__stage { padding: .75rem .5rem 4.25rem; }
  .lightbox__nav { top: auto; bottom: .75rem; margin-top: 0; }
}

/* Footer: recapiti */
.site-footer__phones { display: grid; gap: .2rem; margin: 0; font-size: .9375rem; }
.site-footer__phones span { display: inline-block; min-width: 8.5rem; color: var(--muted-on-dark); }
.site-footer__phones a { color: var(--text-on-dark); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.site-footer__phones a:hover { color: var(--white); text-decoration: underline; }

/* Settori: riga evidenziata con velo trasparente */
.sector::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: rgba(17, 128, 155, .06); opacity: 0; transition: opacity .4s var(--ease); }
.sector { isolation: isolate; }
.sector:hover::before { opacity: 1; }
.sector__num { transition: transform .4s var(--ease); }
.sector:hover .sector__num { transform: translateX(4px); }

/* Effetti animati aggiuntivi (solo se l'utente non ha chiesto movimento ridotto) */
@media (prefers-reduced-motion: no-preference) {
  /* titoli che si svelano dal basso */
  .js .reveal.reveal--title { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(14px); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.reveal--title.is-visible { clip-path: inset(0 0 -20% 0); transform: none; }
  /* gli strati dei simboli dei servizi si compongono all'ingresso */
  .js .service-card.reveal .service-mark span { opacity: 0; translate: 0 14px; }
  .js .service-card.reveal .service-mark span:nth-child(2) { transition-delay: .1s; }
  .js .service-card.reveal .service-mark span:nth-child(3) { transition-delay: .2s; }
  .js .service-card.reveal.is-visible .service-mark span { opacity: 1; translate: 0 0; }
  .js .service-card.reveal.is-visible:hover .service-mark span:nth-child(1) { translate: -4px -3px; transition-delay: 0s; }
  .js .service-card.reveal.is-visible:hover .service-mark span:nth-child(3) { translate: 4px 3px; transition-delay: 0s; }
  /* linea del processo che si disegna */
  .js .process__steps .step::before { transition: transform 1.1s var(--ease) .35s; transform-origin: left top; }
  .js .process__steps .step.reveal:not(.is-visible)::before { transform: scale(0); }
  /* leggero parallasse degli strati nella hero */
  .hero-art__layer--back { translate: 0 calc(var(--parallax, 0) * -.08px); }
  .hero-art__layer--film { translate: 0 calc(var(--parallax, 0) * .1px); }
  /* punti di forza e foto in sequenza */
  .js .mosaic .reveal:nth-child(2), .js .thumb-grid .reveal:nth-child(4n+2) { transition-delay: .06s; }
  .js .mosaic .reveal:nth-child(3), .js .thumb-grid .reveal:nth-child(4n+3) { transition-delay: .12s; }
  .js .mosaic .reveal:nth-child(4), .js .thumb-grid .reveal:nth-child(4n+4) { transition-delay: .18s; }
  .js .mosaic .reveal:nth-child(5) { transition-delay: .24s; }
  .js .mosaic .reveal:nth-child(6) { transition-delay: .3s; }
  .js .mosaic .reveal:nth-child(7) { transition-delay: .36s; }
}

/* 9. Pagine interne (privacy, cookie, 404) --------------------------------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--paper); }
.page-hero__title { font-size: var(--fs-h2); }
.page-hero__meta { margin-top: 1rem; color: var(--text-muted); }
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.legal__body { max-width: 48rem; }
.legal__body h2 { font-size: 1.375rem; margin: 2.5rem 0 1rem; }
.legal__body h3 { font-size: 1.125rem; margin: 1.75rem 0 .75rem; }
.legal__body p, .legal__body li { color: #34434a; }
.legal__body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.legal__body li { margin-bottom: .4rem; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9375rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
.legal__body th { background: var(--paper); font-weight: 700; }
.legal__table-wrap { overflow-x: auto; }
.draft-notice {
  display: flex;
  gap: .85rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: #fff8e8;
  border: 1px solid #f0d9a6;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: #5c4515;
  font-weight: 600;
}
.draft-notice .icon { color: var(--gold); width: 1.4rem; height: 1.4rem; }
.todo { background: #fff3cd; padding: 0 .25em; border-radius: 3px; font-weight: 700; color: #6b4e00; }

.notfound { padding-block: clamp(5rem, 4rem + 6vw, 9rem); text-align: center; }
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 250; line-height: 1; letter-spacing: -.05em; color: var(--teal); margin-bottom: 1rem; }
.notfound .btn { margin-top: 1.5rem; }

/* 10. Animazioni ----------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: gli strati si posano in sequenza */
  .hero-art__layer { animation: layer-in 1.1s var(--ease) both; }
  .hero-art__layer--back { animation-delay: .1s; --from: translate(40px, -30px); }
  .hero-art__layer--sheet { animation-delay: .3s; --from: translate(0, 30px); }
  .hero-art__layer--film { animation-delay: .55s; --from: translate(-40px, 40px); }
  .hero-art__cut { animation: dash-in 2.2s var(--ease) .7s both; }
  .hero__content > * { animation: rise .8s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .06s; }
  .hero__content > :nth-child(3) { animation-delay: .12s; }
  .hero__content > :nth-child(4) { animation-delay: .18s; }
  .hero__content > :nth-child(5) { animation-delay: .24s; }
  .hero__content > :nth-child(6) { animation-delay: .3s; }

  /* Reveal allo scroll (solo con JavaScript attivo) */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .services__grid .reveal:nth-child(3n+2), .js .why__grid .reveal:nth-child(4n+2) { transition-delay: .08s; }
  .js .services__grid .reveal:nth-child(3n+3), .js .why__grid .reveal:nth-child(4n+3) { transition-delay: .16s; }
  .js .why__grid .reveal:nth-child(4n+4) { transition-delay: .24s; }
  .js .process__steps .reveal:nth-child(2) { transition-delay: .08s; }
  .js .process__steps .reveal:nth-child(3) { transition-delay: .16s; }
  .js .process__steps .reveal:nth-child(4) { transition-delay: .24s; }
  .js .process__steps .reveal:nth-child(5) { transition-delay: .32s; }

  /* Manifesto: reveal tipografico a righe */
  .js [data-reveal-quote] .manifesto__line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .js [data-reveal-quote] .manifesto__line:nth-child(2) > span { transition-delay: .25s; }
  .js [data-reveal-quote] .manifesto__swash path { stroke-dashoffset: 300; transition: stroke-dashoffset 1.2s var(--ease) 1.1s; }
  .js [data-reveal-quote].is-visible .manifesto__line > span { transform: none; }
  .js [data-reveal-quote].is-visible .manifesto__swash path { stroke-dashoffset: 0; }
}

@keyframes layer-in { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
@keyframes dash-in { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .mobile-bar, .hero__art, .quote-form, .nav-toggle { display: none !important; }
  body { color: #000; }
  .section, .manifesto, .quote-cta { padding-block: 1.5rem; background: none !important; color: #000 !important; }
}
