/* =========================================================
   Ideal Pinturas — foglio di stile unico del sito
   Indice: font · token · reset · base · componenti comuni
   header · hero · marquee · sezioni · footer · animazioni
   Breakpoint: 40rem (sm) · 48rem (md) · 64rem (lg)
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-50: #fff2f1;
  --brand-200: #ffc7c5;
  --brand-300: #ff9d9b;
  --brand-400: #f9635f;
  --brand-500: #e63a35;
  --brand-600: #bf1a1e;
  --brand-700: #a5060a;
  --brand-900: #6d0d10;

  --ink-950: #100c0c;
  --ink-900: #181212;
  --ink-800: #241b1a;
  --ink-700: #352927;
  --ink-500: #6b5a57;
  --ink-400: #8d7d79;

  --cream: #faf7f5;
  --sand: #f1eae6;

  --line: rgba(16, 12, 12, 0.08);
  --shadow-brand: 0 32px 70px -34px rgba(165, 6, 10, 0.55);
  --shadow-card: 0 22px 45px -30px rgba(16, 12, 12, 0.45);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --colors: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

/* ---------- reset ---------- */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* compensa l'header fisso */
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ol, ul {
  list-style: none;
}

img, svg, video {
  display: block;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  opacity: 1;
}

textarea {
  resize: vertical;
}

summary {
  display: list-item;
}

[hidden] {
  display: none !important;
}

/* ---------- base ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  flex: 1;
  min-width: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background-color: var(--brand-700);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  border-radius: 999px;
  background-color: var(--brand-700);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- componenti comuni ---------- */
.shell {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding-inline: 1.25rem;
}

.i {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-14 { width: 0.875rem; height: 0.875rem; }
.i-16 { width: 1rem; height: 1rem; }
.i-18 { width: 1.125rem; height: 1.125rem; }
.i-20 { width: 1.25rem; height: 1.25rem; }
.i-22 { width: 1.375rem; height: 1.375rem; }
.i-24 { width: 1.5rem; height: 1.5rem; }
.i-26 { width: 1.625rem; height: 1.625rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-block { width: 100%; }

.btn-primary {
  background-image: linear-gradient(120deg, var(--brand-700), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: 0 26px 55px -22px rgba(191, 26, 30, 0.7);
}

.btn-outline {
  border: 1px solid rgba(16, 12, 12, 0.18);
  color: var(--ink-900);
}

.btn-outline:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
}

.btn-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.btn-white {
  flex-shrink: 0;
  background-color: #fff;
  color: var(--brand-700);
}

.btn-white:hover {
  background-color: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: var(--brand-600);
}

.eyebrow-light { color: var(--brand-300); }
.eyebrow-light::before { background-color: var(--brand-500); }

.accent { color: var(--brand-700); }
.accent-light { color: var(--brand-400); }

.heading { max-width: 42rem; }

.heading-center {
  margin-inline: auto;
  text-align: center;
}

.heading h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink-950);
}

.heading > p:last-child {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--ink-500);
}

.heading-light h2 { color: #fff; }
.heading-light > p:last-child { color: rgba(255, 255, 255, 0.65); }

.section { padding-block: 6rem; }
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: #fff; }

.section-dark {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-950);
}

.layer {
  position: absolute;
  inset: 0;
}

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.photo {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-900);
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(16, 12, 12, 0.85), rgba(16, 12, 12, 0.1) 50%, transparent);
  background-image: linear-gradient(to top in oklab, rgba(16, 12, 12, 0.85), rgba(16, 12, 12, 0.1) 50%, transparent);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.header.is-solid {
  border-bottom-color: rgba(16, 12, 12, 0.1);
  background-color: rgba(250, 247, 245, 0.85);
  backdrop-filter: blur(24px);
}

.header__bar {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  transition: var(--colors);
  transition-duration: 0.3s;
}

.logo img {
  width: auto;
  height: 2.75rem;
}

.logo--footer img { height: 3.5rem; }

.is-solid .logo {
  border-radius: 1rem;
  background-color: var(--ink-950);
  padding: 0.5rem 0.875rem;
}

.nav { display: none; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--colors);
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.is-solid .nav a { color: var(--ink-700); }

.is-solid .nav a:hover {
  background-color: rgba(16, 12, 12, 0.05);
  color: var(--brand-700);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #fff;
  transition: var(--colors);
}

.header__phone:hover { color: var(--brand-300); }
.header__phone .i { color: var(--brand-600); }
.is-solid .header__phone { color: var(--ink-900); }
.is-solid .header__phone:hover { color: var(--brand-700); }

.menu-btn {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 999px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: var(--colors);
}

.menu-btn:hover { border-color: var(--brand-400); }

.is-solid .menu-btn {
  border-color: rgba(16, 12, 12, 0.12);
  color: var(--ink-900);
}

.is-solid .menu-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

.mobile-menu {
  border-top: 1px solid rgba(16, 12, 12, 0.1);
  background-color: var(--cream);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1.5rem;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: var(--colors);
}

.mobile-menu__link:hover { background-color: #fff; }
.mobile-menu__link span { color: var(--brand-600); }

.mobile-menu__cta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- hero ---------- */
.hero { padding-top: 5rem; }

.hero__glow {
  background-image:
    radial-gradient(70% 55% at 78% 8%, rgba(191, 26, 30, 0.55) 0%, transparent 60%),
    radial-gradient(55% 45% at 5% 85%, rgba(165, 6, 10, 0.42) 0%, transparent 65%);
}

.hero__streak {
  position: absolute;
  right: -10rem;
  top: 25%;
  width: 60%;
  height: 140%;
  rotate: 12deg;
  opacity: 0.3;
  filter: blur(64px);
  background-image: linear-gradient(115deg, transparent, rgba(191, 26, 30, 0.65), transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.02;
  color: #fff;
}

.hero__mark {
  position: relative;
  white-space: nowrap;
}

.hero__mark span {
  position: relative;
  z-index: 10;
  color: var(--brand-400);
}

.hero__mark svg {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 1rem;
  color: var(--brand-700);
}

.hero__lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.hero__points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.hero__tick {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background-color: rgba(191, 26, 30, 0.2);
  color: var(--brand-300);
}

.tick-strong { stroke-width: 2.4; }
.tick-bold { stroke-width: 2.6; }

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__media { position: relative; }
.hero__figure { position: relative; }

.hero__seal {
  position: absolute;
  left: -0.75rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.875rem 1.25rem 0.875rem 0.875rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.hero__seal-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.75rem;
  background-color: var(--brand-700);
  color: #fff;
}

.hero__seal-text {
  display: flex;
  flex-direction: column;
}

.hero__seal-text strong {
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 800;
  color: var(--ink-950);
}

.hero__seal-text small {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--ink-500);
}

.hero__since {
  position: absolute;
  top: -1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: rgba(16, 12, 12, 0.8);
  padding: 0.625rem 1rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: #fff;
}

.hero__since::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: var(--brand-400);
}

.stats-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat {
  padding: 1.75rem 0.5rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
  color: #fff;
}

.stat__label {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(134, 8, 12, 0.4);
  background-color: var(--brand-700);
  padding-block: 1rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
}

.marquee ul {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.marquee li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.marquee li::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  rotate: 45deg;
  background-color: rgba(255, 255, 255, 0.5);
}

/* ---------- servizi ---------- */
.services__head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services__head .btn {
  flex-shrink: 0;
  align-self: flex-start;
}

.services__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: #fff;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}

.card:hover {
  translate: 0 -0.375rem;
  border-color: rgba(191, 26, 30, 0.3);
  box-shadow: var(--shadow-card);
}

.card::before {
  content: "";
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background-color: rgba(191, 26, 30, 0.12);
  opacity: 0;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  background-color: var(--brand-50);
  color: var(--brand-700);
  transition: var(--colors);
  transition-duration: 0.3s;
}

.card:hover .card__icon {
  background-color: var(--brand-700);
  color: #fff;
}

.card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  color: var(--ink-950);
}

.card > p {
  flex: 1;
  margin-top: 0.75rem;
  font-size: 0.97rem;
  line-height: 1.625;
  color: var(--ink-500);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tags li {
  border-radius: 999px;
  background-color: var(--sand);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* ---------- processo ---------- */
.steps {
  position: relative;
  display: grid;
  row-gap: 3rem;
  margin-top: 4rem;
}

.step { position: relative; }

.step__num {
  position: relative;
  z-index: 10;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 1rem;
  background-color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 0 8px #fff;
}

.step h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  color: var(--ink-950);
}

.step p {
  margin-top: 0.75rem;
  max-width: 24rem;
  font-size: 0.97rem;
  line-height: 1.625;
  color: var(--ink-500);
}

/* ---------- diferenciais ---------- */
.why__glow {
  background-image:
    radial-gradient(60% 50% at 85% 15%, rgba(165, 6, 10, 0.45) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(191, 26, 30, 0.3) 0%, transparent 60%);
}

.why__grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

.why__media { position: relative; }

.why__badge {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  max-width: 15rem;
  border-radius: 1rem;
  background-color: var(--brand-700);
  padding: 1.25rem;
  box-shadow: var(--shadow-brand);
}

.why__years {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.why__years span:last-child {
  margin-left: 0.375rem;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--brand-200);
}

.why__place {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.375;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.reasons {
  display: grid;
  gap: 1.75rem 2rem;
  margin-top: 3rem;
}

.reasons li {
  display: flex;
  gap: 1rem;
}

.reasons__tick {
  display: grid;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.125rem;
  place-items: center;
  border-radius: 999px;
  background-color: var(--brand-600);
  color: #fff;
}

.reasons h3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.reasons p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
}

.why__cta { margin-top: 3rem; }

/* ---------- projetos ---------- */
.works {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.work {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

.works li:hover img { scale: 1.03; }

.work figcaption,
.video figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}

.work figcaption { padding: 1.5rem; }

.work__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.work__detail,
.video__detail {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.work__detail { margin-top: 0.25rem; }

.videos { margin-top: 4rem; }

.videos h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  color: var(--ink-950);
}

.videos__hint {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--ink-500);
}

.gallery {
  display: flex;
  gap: 1rem;
  margin: 2rem -1.25rem 0;
  padding: 0 1.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.video {
  position: relative;
  flex-shrink: 0;
  width: 16rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--ink-900);
  scroll-snap-align: start;
}

.video__frame {
  position: relative;
  aspect-ratio: 9 / 16;
}

.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video__play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

.video__play:hover img { scale: 1.04; }

.video__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  translate: -50% -50%;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-700);
  box-shadow: var(--shadow-card);
  transition: var(--colors);
  transition-duration: 0.3s;
}

.video__icon .i {
  margin-left: 0.125rem;
}

.video__play:hover .video__icon {
  background-color: var(--brand-700);
  color: #fff;
}

.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  object-fit: contain;
}

.video figcaption {
  padding: 1.25rem;
  pointer-events: none;
}

.video__title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.video__detail { margin-top: 0.125rem; }

/* ---------- faq ---------- */
.faq__grid {
  display: grid;
  gap: 3rem;
}

.faq__list {
  border-block: 1px solid rgba(16, 12, 12, 0.1);
}

.faq__list details + details {
  border-top: 1px solid rgba(16, 12, 12, 0.1);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  list-style: none;
  cursor: pointer;
  color: var(--ink-950);
  transition: var(--colors);
}

.faq__list summary:hover { color: var(--brand-700); }

.faq__list h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.faq__toggle {
  display: grid;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 12, 12, 0.12);
  color: var(--brand-700);
  transition: rotate 0.3s var(--ease);
}

details[open] .faq__toggle {
  rotate: 45deg;
  border-color: var(--brand-700);
  background-color: var(--brand-700);
  color: #fff;
}

.faq__list details p {
  padding: 0 3.5rem 1.5rem 0;
  line-height: 1.625;
  color: var(--ink-500);
}

/* ---------- contato ---------- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  gap: 3.5rem;
}

.contact__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 1rem;
  transition: var(--colors);
}

a.contact__item:hover {
  border-color: rgba(191, 26, 30, 0.4);
  background-color: var(--cream);
}

.contact__icon {
  display: grid;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.75rem;
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.contact__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact__label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.contact__value {
  font-size: 0.875rem;
  line-height: 1.375;
  font-weight: 600;
  overflow-wrap: break-word;
  color: var(--ink-900);
}

.form {
  border-radius: 2rem;
  border: 1px solid var(--line);
  background-color: var(--cream);
  padding: 1.5rem;
}

.form__grid {
  display: grid;
  gap: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form label > span {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
}

.field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(16, 12, 12, 0.1);
  background-color: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.97rem;
  color: var(--ink-900);
  transition: var(--colors);
}

.field:focus-visible { outline: none; }
.field:focus { border-color: var(--brand-600); }
.field::placeholder { color: var(--ink-400); }

.form .btn { margin-top: 1.5rem; }

.form__note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-500);
}

/* ---------- footer ---------- */
.footer {
  padding-top: 5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__glow {
  background-image: radial-gradient(60% 60% at 15% 0%, rgba(165, 6, 10, 0.35) 0%, transparent 65%);
}

.footer__relative { position: relative; }

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 2rem;
  background-color: var(--brand-700);
  background-image: linear-gradient(to bottom right in oklab, var(--brand-700), var(--brand-900));
  padding: 2rem;
  box-shadow: var(--shadow-brand);
}

.footer__cta h2 {
  max-width: 36rem;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}

.footer__cta p {
  margin-top: 1rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

.footer__about {
  margin-top: 1.5rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social a {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: var(--colors);
}

.social a:hover {
  border-color: var(--brand-500);
  background-color: var(--brand-700);
}

.footer h3 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.footer__links {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer__links li + li { margin-top: 0.75rem; }
.footer__links--wide li + li { margin-top: 1rem; }

.footer__links a,
.footer__bottom a {
  transition: var(--colors);
}

.footer__links a:hover,
.footer__bottom a:hover,
.footer__bottom button:hover {
  color: var(--brand-300);
}

.footer__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer__row .i {
  margin-top: 0.125rem;
  color: var(--brand-500);
}

.footer__bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-inner,
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__bottom-inner {
  padding-block: 1.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom button {
  cursor: pointer;
  text-align: left;
  transition: var(--colors);
}

/* ---------- whatsapp + cookie ---------- */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background-color: #25d366;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(37, 211, 102, 0.9);
  transition: translate 0.3s var(--ease);
}

.fab:hover { translate: 0 -0.25rem; }

.fab span {
  display: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.cookie {
  position: fixed;
  inset-inline: 1rem;
  bottom: 6rem;
  z-index: 50;
}

.cookie__box {
  border-radius: 1.5rem;
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: 0 28px 60px -18px rgba(16, 12, 12, 0.55), 0 0 0 1px rgba(16, 12, 12, 0.1);
}

.cookie h2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 800;
  color: var(--ink-950);
}

.cookie p {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-500);
}

.cookie a {
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie a:hover { color: var(--brand-600); }

.cookie__actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.cookie__actions .btn { flex: 1; }

/* ---------- pagine legali ---------- */
.legal-hero { padding: 9rem 0 4rem; }

.legal-hero__glow {
  background-image: radial-gradient(65% 60% at 80% 0%, rgba(165, 6, 10, 0.42) 0%, transparent 62%);
}

.legal-hero__inner { position: relative; }

.legal-hero h1 {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
}

.legal-hero__date {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.legal-body { padding-block: 4rem; }

.legal { max-width: 48rem; }
.legal > * + * { margin-top: 1.1rem; }

.legal h2 {
  margin-top: 3rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-950);
}

.legal p,
.legal li {
  line-height: 1.75;
  color: var(--ink-500);
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal li::marker { color: var(--brand-600); }

.legal strong {
  font-weight: 700;
  color: var(--ink-900);
}

.legal a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover { color: var(--brand-600); }

.legal code {
  border-radius: 5px;
  background-color: var(--sand);
  padding: 0.12em 0.4em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--ink-900);
}

.legal__inline {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__inline:hover { color: var(--brand-600); }

.legal__back {
  margin-top: 3.5rem;
  max-width: 48rem;
}

@media (min-width: 40rem) {
  .legal-hero h1 { font-size: 3rem; }
}

@media (min-width: 64rem) {
  .legal-hero { padding: 10rem 0 5rem; }
  .legal-body { padding-block: 6rem; }
}

/* ---------- animazioni ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .delay-80 { animation-delay: 80ms; }
  .delay-160 { animation-delay: 160ms; }
  .delay-200 { animation-delay: 200ms; }
  .delay-220 { animation-delay: 220ms; }
  .delay-280 { animation-delay: 280ms; }

  .marquee-track { animation: marquee 38s linear infinite; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- breakpoint sm (640px) ---------- */
@media (min-width: 40rem) {
  .shell { padding-inline: 2rem; }
  .logo img { height: 3rem; }
  .logo--footer img { height: 3.5rem; }

  .hero h1 { font-size: 3.75rem; }

  .hero__points {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.5rem;
  }

  .hero__cta { flex-direction: row; }
  .hero__photo { aspect-ratio: 3 / 2; }
  .hero__seal { left: -1.5rem; }
  .hero__since { right: 0; }

  .heading h2 { font-size: 2.25rem; }

  .services__grid,
  .works,
  .contact__list,
  .form__grid,
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 { grid-column: span 2 / span 2; }

  .why__badge { right: -2rem; }

  .gallery {
    margin-inline: -2rem;
    padding-inline: 2rem;
  }

  .video { width: 18rem; }

  .form { padding: 2rem; }

  .footer__cta { padding: 3rem; }
  .footer__cta h2 { font-size: 2.25rem; }

  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .fab {
    right: 2rem;
    bottom: 2rem;
  }

  .fab span { display: inline; }

  .cookie {
    inset-inline: 1.5rem;
    bottom: 7rem;
  }

  .cookie__box { padding: 1.75rem; }
  .cookie__actions .btn { flex: none; }
}

/* ---------- breakpoint md (768px) ---------- */
@media (min-width: 48rem) {
  .header__actions { display: flex; }

  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding-block: 2.25rem; }
  .stat:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .stat__value { font-size: 2.25rem; line-height: 2.5rem; }

  .services__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .services__head .btn { align-self: auto; }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

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

/* ---------- breakpoint lg (1024px) ---------- */
@media (min-width: 64rem) {
  .nav { display: block; }
  .menu-btn,
  .mobile-menu { display: none; }

  .section { padding-block: 8rem; }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .hero h1 { font-size: 4.2rem; }
  .hero__media { padding-left: 1.5rem; }
  .hero__photo { aspect-ratio: 4 / 5; }

  .heading h2 { font-size: 2.9rem; }

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

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  /* linea che collega le fasi */
  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 1.75rem;
    height: 1px;
    background-image: linear-gradient(to right in oklab, var(--brand-200), var(--brand-400), var(--brand-200));
  }

  .why__grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
  }

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

  .faq__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }

  .contact__side {
    position: sticky;
    top: 7rem;
  }

  .footer__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

  .cookie {
    bottom: 1.5rem;
    right: auto;
    max-width: 36rem;
  }
}
