/* ==========================================================================
   PERFORZA · foglio di stile
   Identità: Deep Navy #0F172A · Blue Force #2E9BFF · font Oxanium (marchio)
   Motivo grafico: le linee oblique a 60° del logo e gli angoli "tagliati"
   delle lettere → usati per cornici, pulsanti e margini delle sezioni.

   INDICE
   01 Variabili e base
   02 Utilità
   03 Pulsanti
   04 Intestazione e menu
   05 Hero + fascia servizi
   06 Elementi comuni di sezione
   07 Chi siamo
   08 Servizi
   09 Galleria
   10 Contatti
   11 Footer
   12 Barra chiamata (mobile) e lightbox
   13 Animazioni di comparsa
   14 Adattamenti schermo
   15 Movimento ridotto
   ========================================================================== */


/* 01 · VARIABILI E BASE
   ========================================================================== */
@font-face {
  font-family: "Oxanium";
  src: url("../assets/fonts/oxanium-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colori del marchio */
  --navy: #0F172A;
  --navy-deep: #0A0F1D;
  --navy-800: #151F38;
  --blue: #2E9BFF;
  --blue-deep: #0A66C2;      /* blu più scuro: per testi su sfondo chiaro (contrasto 5.7:1) */
  --paper: #F2F5FA;
  --white: #FFFFFF;
  --ink: var(--navy);
  --ink-soft: #44506A;
  --on-dark-soft: #C3CEE3;

  /* Font */
  --font-display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spazi e misure */
  --pad: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --header-h: 84px;
  --ch: 28px;                /* "taglio" degli angoli delle immagini */
  --focus: var(--white);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;       /* 19px: comodo da leggere per tutti */
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}


/* 02 · UTILITÀ
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -140px; left: 12px;
  z-index: 200;
  padding: .9rem 1.4rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.35em; height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Segnaposto: informazioni ancora da fornire */
.placeholder {
  display: inline-block;
  padding: .2rem .65rem;
  border: 1.5px dashed #B26A00;
  background: #FFF4D6;
  color: #6B3F00;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Piccola etichetta obliqua */
.tag {
  display: inline-block;
  padding: .15rem 1.1rem;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* Cornice con angoli tagliati (come le lettere del marchio) */
.frame {
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, var(--ch) 100%, 0 calc(100% - var(--ch)));
}


/* 03 · PULSANTI
   Forma a parallelogramma + "ombra" che si chiude quando si passa sopra.
   La forma sta nei pseudo-elementi così il contorno di focus resta visibile.
   ========================================================================== */
.btn {
  --sl: 20px;
  --btn-bg: var(--blue);
  --btn-fg: var(--navy);
  --btn-slab: rgba(255, 255, 255, .3);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 60px;
  padding: .9rem 2.2rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  transition: transform .25s var(--ease), color .25s;
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%);
}
.btn::before {
  z-index: -1;
  background: var(--btn-bg);
  transition: background-color .25s;
}
.btn::after {
  z-index: -2;
  background: var(--btn-slab);
  transform: translate(6px, 6px);
  transition: transform .25s var(--ease);
}
.btn strong { font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.btn .icon { transition: transform .25s var(--ease); }

.btn:hover { transform: translate(4px, 4px); }
.btn:hover::after { transform: translate(2px, 2px); }
.btn:hover .icon { transform: rotate(-12deg) scale(1.08); }

.btn--primary:hover { --btn-bg: var(--white); }

.btn--ghost {
  --btn-bg: #26335A;
  --btn-fg: var(--white);
  --btn-slab: rgba(46, 155, 255, .6);
}
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--navy); }

.btn--dark {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-slab: rgba(15, 23, 42, .3);
  --focus: var(--navy);
}
.btn--dark:hover { --btn-bg: var(--white); --btn-fg: var(--navy); }

.btn--small { --sl: 14px; min-height: 50px; padding: .6rem 1.6rem; font-size: 1.0625rem; }
.btn--large { --sl: 24px; min-height: 68px; padding: 1rem 2.6rem; font-size: 1.25rem; }


/* 04 · INTESTAZIONE E MENU
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(46, 155, 255, .35);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: clamp(150px, 15vw, 190px); height: auto; }

.site-nav__list { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.site-header__call { display: none; }

/* Pulsante "Menu" (sempre con la parola scritta, non solo icona) */
.menu-toggle {
  display: none;
  align-items: center;
  gap: .75rem;
  min-height: 52px;
  padding: 0 1.1rem;
  border: 2px solid rgba(255, 255, 255, .85);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 22px; height: 14px; }
.menu-toggle__bars i {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__bars i:nth-child(1) { top: 0; }
.menu-toggle__bars i:nth-child(2) { top: 11px; }
.site-header.is-open .menu-toggle__bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle__bars i:nth-child(2) { top: 5px; transform: rotate(-45deg); }


/* 05 · HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow-x: clip;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  min-height: min(760px, calc(100svh - var(--header-h) - 80px));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
/* tre tratti obliqui: richiamo diretto al segno del logo */
.eyebrow::before {
  content: "";
  flex: none;
  width: 30px; height: 16px;
  background: repeating-linear-gradient(120deg, currentColor 0 4px, transparent 4px 10px);
}
.eyebrow--dark { color: var(--navy); }

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.6rem;
  font-size: clamp(3.4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--blue); }

.hero__lead {
  max-width: 31em;
  margin-bottom: 2.2rem;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  color: var(--on-dark-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.6rem;
  padding: 0 8px 8px 0;       /* spazio per l'"ombra" dei pulsanti */
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 1.8rem 0 0;
  font-size: 1.0625rem;
  color: var(--on-dark-soft);
}

/* Immagine: sporge fino al bordo destro dello schermo, con lato sinistro obliquo */
.hero__media {
  position: relative;
  margin: 0;
  --bleed: max(var(--pad), calc((100vw - var(--max)) / 2));
  margin-right: calc(-1 * var(--bleed));
}
.hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
}
/* tratto blu parallelo al lato obliquo */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-26px);
  background: var(--blue);
  clip-path: polygon(15% 0, calc(15% + 14px) 0, 14px 100%, 0 100%);
}
.hero__media figcaption {
  position: absolute;
  left: 17%;
  bottom: -2.2rem;
  font-family: var(--font-display);
  font-size: .9375rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* entrata della prima schermata (solo CSS) */
.hero__anim { animation: rise .9s var(--ease) var(--d, 0s) both; }
.hero__anim--media { animation-name: slide-in; animation-duration: 1.1s; }
.hero__anim--media img { animation: settle 1.8s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes settle { from { transform: scale(1.1); } }

/* Fascia con le 4 aree di lavoro */
.strip {
  background: var(--navy-800);
  border-top: 1px solid rgba(46, 155, 255, .35);
}
.strip__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.strip__list li {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.strip__list li + li { position: relative; }
.strip__list li + li::before {
  content: "";
  position: absolute;
  left: calc(-1rem - 2px);
  top: 50%;
  width: 3px; height: 26px;
  background: var(--blue);
  transform: translateY(-50%) skewX(-30deg);
}


/* 06 · ELEMENTI COMUNI DI SEZIONE
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 144px);
}
.section-title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}

/* Margine superiore obliquo ("/"): colore della sezione precedente nel triangolo */
.cut-top { padding-top: calc(clamp(80px, 10vw, 144px) + var(--cut)); --cut: clamp(36px, 6vw, 96px); }
.cut-top::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: var(--cut);
  background: var(--cut-color, var(--paper));
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.cut-bottom { padding-bottom: calc(clamp(80px, 10vw, 144px) + var(--cut)); --cut: clamp(36px, 6vw, 96px); }
.cut-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: var(--cut);
  background: var(--cut-color, var(--paper));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}


/* 07 · CHI SIAMO
   ========================================================================== */
.about {
  background: var(--paper);
  --cover: var(--paper);
  --focus: var(--navy);
}
.about .eyebrow { color: var(--blue-deep); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.about__media {
  position: relative;
  padding-bottom: 27%;
}
.about__stripe {
  position: absolute;
  z-index: 0;
  left: -22px; top: 24px;
  width: 55%; height: 70%;
  background: var(--blue);
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, var(--ch) 100%, 0 calc(100% - var(--ch)));
}
.about__photo { position: relative; z-index: 1; margin: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { aspect-ratio: 820 / 640; }
.about__photo--inset {
  --ch: 20px;
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 36%;
  aspect-ratio: 350 / 520;
  border: 8px solid var(--paper);
  background: var(--paper);
}
.about__photo--inset img { object-position: 50% 30%; }

.about__text .lead {
  font-size: clamp(1.25rem, 1.8vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.55;
}
.about__text p { color: var(--ink-soft); }
.about__text .lead { color: var(--ink); }

.principles { margin: 2.2rem 0 1.8rem; border-bottom: 1px solid rgba(15, 23, 42, .16); }
.principles li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: 1.1rem 0 1.1rem 1.4rem;
  position: relative;
  border-top: 1px solid rgba(15, 23, 42, .16);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.45rem;
  width: 6px; height: 28px;
  background: var(--blue);
  transform: skewX(-30deg);
}
.principles h3 { font-size: 1.25rem; font-weight: 700; }
.principles p { margin: 0; font-size: 1.0625rem; }
.principles li:nth-child(2) { --delay: .08s; }
.principles li:nth-child(3) { --delay: .16s; }


/* 08 · SERVIZI
   ========================================================================== */
.services {
  background: var(--navy);
  color: var(--white);
  --cut-color: var(--paper);
}
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services__intro p:not(.eyebrow) { color: var(--on-dark-soft); max-width: 26em; }

.services__trial {
  display: inline-flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .8rem;
  padding: 1.15rem 2.4rem 1.2rem 1.6rem;
  background: var(--blue);
  color: var(--navy);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition: background-color .25s;
}
.services__trial:hover { background: var(--white); }
.services__trial-label {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.services__trial-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.services__list { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3.5rem, 6vw, 5.25rem) minmax(0, 1fr);
  gap: 0 1rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem) .75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(46, 155, 255, .2), rgba(46, 155, 255, 0) 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service > * { position: relative; z-index: 1; }
.service__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  transition: transform .4s var(--ease);
}
.service h3 {
  margin-bottom: .6rem;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  transition: transform .4s var(--ease);
}
.service p { margin: 0; max-width: 36em; color: var(--on-dark-soft); }
.service:hover h3 { transform: translateX(10px); }
.service:hover .service__num { transform: translateX(4px); }
.service:nth-child(2) { --delay: .06s; }
.service:nth-child(3) { --delay: .12s; }
.service:nth-child(4) { --delay: .18s; }


/* 09 · GALLERIA
   ========================================================================== */
.gallery {
  background: var(--paper);
  --cover: var(--paper);
  --focus: var(--navy);
  --g: clamp(14px, 2vw, 28px);
}
.gallery .eyebrow { color: var(--blue-deep); }
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.gallery__head .section-title { margin-bottom: 0; }
.gallery__hint {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--blue);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: clamp(28px, 4vw, 56px);
}
.g-item { position: relative; align-self: start; overflow: hidden; --ch: 22px; }
.g-item--1 { grid-column: 1 / 8; grid-row: 1; }
.g-item--2 { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: clamp(40px, 7vw, 110px); }
.g-item--3 { grid-column: 1 / 6; grid-row: 2; align-self: center; }
.g-item--4 { grid-column: 6 / 9; grid-row: 2; margin-top: clamp(16px, 3vw, 48px); }
.g-item--5 { grid-column: 1 / 7; grid-row: 3; }
.g-item--6 { grid-column: 7 / 13; grid-row: 3; margin-top: clamp(30px, 5vw, 72px); }
.g-item--video { grid-column: 1 / 8; }

.g-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: zoom-in;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, var(--ch) 100%, 0 calc(100% - var(--ch)));
}
.g-btn img {
  width: 100%;
  transition: transform .8s var(--ease), opacity .4s;
}
.g-btn:hover img,
.g-btn:focus-visible img { transform: scale(1.05); opacity: .9; }
/* etichetta che entra dal basso */
.g-btn__label {
  position: absolute;
  left: 0; bottom: 0;
  padding: .7rem 1.4rem .7rem 1.1rem;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
}
.g-btn:hover .g-btn__label,
.g-btn:focus-visible .g-btn__label { transform: none; }

.g-caption {
  position: relative;
  margin: .8rem 0 0;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.g-caption::before {
  content: "";
  position: absolute;
  left: .2rem; top: .35em;
  width: 4px; height: 1em;
  background: var(--blue);
  transform: skewX(-30deg);
}


/* 10 · CONTATTI
   ========================================================================== */
.contact {
  background: var(--blue);
  color: var(--navy);
  overflow: hidden;
  --cut-color: var(--paper);
  --focus: var(--navy);
}
.contact__symbol {
  position: absolute;
  right: -5vw;
  top: 50%;
  width: clamp(300px, 36vw, 540px);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }

.contact__title {
  max-width: 10.5em;
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
}
.contact__lead {
  max-width: 30em;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  font-weight: 500;
}

.contact__number {
  position: relative;
  display: inline-block;
  margin: .6rem 0 1.4rem;
  padding-bottom: .15em;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 10.5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--navy);
}
.contact__number small {
  font-size: .4em;
  font-weight: 700;
  vertical-align: .85em;
  letter-spacing: .04em;
}
.contact__number::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: .09em;
  background: var(--navy);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.contact__number:hover::after { transform: scaleX(.35); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
  padding: 0 8px 8px 0;
}
.contact__where { margin: 0; font-weight: 600; font-size: 1.125rem; }

.contact__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  max-width: 46rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  counter-reset: step;
}
.contact__steps li {
  position: relative;
  padding-top: 3.25rem;
  border-top: 3px solid var(--navy);
  font-size: 1.125rem;
  line-height: 1.5;
  counter-increment: step;
}
.contact__steps li::before {
  content: counter(step);
  position: absolute;
  top: .55rem; left: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.contact__steps strong { font-weight: 800; }


/* 11 · FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: calc(clamp(64px, 8vw, 104px) + clamp(28px, 4vw, 56px));
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: clamp(28px, 4vw, 56px);
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.site-footer__brand img { width: 210px; margin-bottom: 1.5rem; }
.site-footer__owner { color: var(--white); font-weight: 700; }
.site-footer__heading {
  margin: 1.6rem 0 .35rem;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.site-footer__info .site-footer__heading:first-child { margin-top: 0; }
.site-footer__info p { margin-bottom: .5rem; }
.text-link {
  color: var(--white);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  transition: color .2s;
}
.text-link:hover { color: var(--blue); }
.text-link--big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer .placeholder {
  border-color: #FFD58A;
  background: rgba(255, 213, 138, .1);
  color: #FFD58A;
}
.site-footer__map {
  min-height: 340px;
  height: 100%;
  background: var(--navy-800);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.site-footer__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 1.4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9375rem;
}
.site-footer__legal p { margin: 0; }


/* 12 · BARRA CHIAMATA (MOBILE) E LIGHTBOX
   ========================================================================== */
.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 68px;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .28);
  transition: transform .35s var(--ease);
  --focus: var(--navy);
}
.call-bar strong { font-weight: 800; white-space: nowrap; }
.call-bar.is-hidden { transform: translateY(110%); }

.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(7, 11, 21, .97);
  color: var(--white);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  padding: 88px 24px 24px;
  animation: fade .3s ease both;
}
.lightbox::backdrop { background: rgba(7, 11, 21, .9); }
@keyframes fade { from { opacity: 0; } }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lightbox__stage img,
.lightbox__stage video {
  max-width: min(100%, 1400px);
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
.lightbox__caption {
  margin: 1rem 0 0;
  min-height: 1.6em;
  font-size: 1.125rem;
  text-align: center;
  color: var(--on-dark-soft);
}
.lightbox__btn {
  position: absolute;
  min-width: 56px; min-height: 56px;
  padding: 0 1.4rem;
  border: 0;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: var(--white); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); font-size: 1.75rem; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__btn:focus-visible { outline-color: var(--white); }


/* 13 · ANIMAZIONI DI COMPARSA (attive solo se JavaScript è disponibile)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* le foto "si scoprono" con una tendina + leggero zoom */
.js .reveal-img { overflow: hidden; }
.js .reveal-img::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--cover, var(--paper));
  transform-origin: 100% 50%;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1) var(--delay, 0s);
  pointer-events: none;
}
.js .reveal-img.is-visible::after { transform: scaleX(0); }
.js .reveal-img img { transform: scale(1.12); transition: transform 1.4s var(--ease) var(--delay, 0s), opacity .4s; }
.js .reveal-img.is-visible img { transform: none; }
.js .g-item.is-visible .g-btn:hover img,
.js .g-item.is-visible .g-btn:focus-visible img { transform: scale(1.05); transition-delay: 0s; transition-duration: .8s; }


/* 14 · ADATTAMENTI SCHERMO
   ========================================================================== */

/* Portatili stretti e tablet: menu a tendina, chiamata nella barra in basso */
@media (max-width: 999px) {
  :root { --header-h: 74px; }

  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    padding: .5rem var(--pad) 1.5rem;
    background: var(--navy);
    box-shadow: 0 1px 0 rgba(46, 155, 255, .35), 0 24px 40px rgba(0, 0, 0, .35);
  }
  .site-header.is-open .site-nav { display: block; animation: fade .25s ease both; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
  .site-nav__list a { display: block; padding: 1.1rem 0; font-size: 1.375rem; }
  .site-nav__list a::after { display: none; }

  .call-bar { display: flex; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 3.5rem; }
  .hero__media { margin-right: calc(-1 * var(--pad)); margin-bottom: 1.5rem; }
  .hero__frame { aspect-ratio: 4 / 3; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__media::before { clip-path: polygon(12% 0, calc(12% + 12px) 0, 12px 100%, 0 100%); transform: translateX(-18px); }
  .hero__media figcaption { left: 14%; }

  .strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 1.6rem; }
  .strip__list li + li::before { display: none; }

  .about__grid,
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 640px; }
  .about__photo--inset { right: 0; }
  .about__stripe { left: -14px; }
  .services__intro { position: static; }

  .site-footer { padding-bottom: 80px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__map { grid-column: 1 / -1; }

  .contact__symbol { width: min(70vw, 460px); right: -16vw; opacity: .12; }
}

/* Schermi larghi: tutto visibile nell'intestazione */
@media (min-width: 1000px) {
  .site-header__call { display: inline-flex; }
}

/* Galleria: da tablet in giù, composizione a 2 colonne */
@media (max-width: 899px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .g-item { margin-top: 0; }
  .g-item--1 { grid-column: 1 / -1; grid-row: 1; }
  .g-item--2 { grid-column: 1; grid-row: 2; }
  .g-item--4 { grid-column: 2; grid-row: 2; align-self: end; }
  .g-item--3 { grid-column: 1 / -1; grid-row: 3; align-self: start; }
  .g-item--5 { grid-column: 1 / -1; grid-row: 4; }
  .g-item--6 { grid-column: 1 / -1; grid-row: 5; }
  .g-item--video { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .btn--large { width: 100%; padding-inline: 1.2rem; }
  .hero__actions { flex-direction: column; padding-right: 8px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn--primary { flex-direction: column; gap: .15rem; }
  .hero__actions .btn--primary .icon { display: none; }
  .hero__actions .btn--primary strong { font-size: 1.5rem; }

  .principles li { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .service__num { font-size: 1.5rem; }

  .contact__steps { grid-template-columns: minmax(0, 1fr); }
  .contact__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

  .lightbox[open] { padding: 80px 12px 88px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}

@media (max-width: 380px) {
  .strip__list li { font-size: .9375rem; letter-spacing: .07em; }
  .g-item--1, .g-item--2, .g-item--3, .g-item--4, .g-item--5, .g-item--6 { grid-column: 1 / -1; grid-row: auto; align-self: start; }
}


/* 15 · MOVIMENTO RIDOTTO
   Chi ha attivato "riduci movimento" nel sistema non vede animazioni.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero__anim { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img::after { display: none; }
  .js .reveal-img img { transform: none; }
}
