/* ==========================================================================
   HR Projetos Rústicos — foglio di stile unico del sito
   Indice: font · token · reset · base · componenti · sezioni · hover · motion
   Breakpoint: 40rem (640) · 64rem (1024) · 80rem (1280)
   ========================================================================== */

/* ——— Font (self-hosted, solo sottoinsieme latino) ——— */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

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

/* ——— Token ——— */
:root {
  color-scheme: dark;

  /* Marca: blu profondo */
  --navy-950: 0 12 27;
  --navy-900: 0 24 50;
  --navy-850: 3 32 64;
  --navy-800: 6 41 76;

  /* Legno: accento caldo */
  --wood-200: 236 210 174;
  --wood-300: 221 179 132;
  --wood-400: 205 151 96;
  --wood-500: 189 130 72;
  --wood-600: 156 103 51;

  /* Neutri caldi */
  --cream-50: 251 248 243;
  --cream-100: 244 238 228;
  --cream-200: 232 222 206;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --shadow-glow: 0 30px 80px -30px rgb(0 12 27 / 0.75);
  --shadow-card: 0 24px 60px -32px rgb(0 12 27 / 0.6);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  height: 100%;
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

ol,
ul {
  list-style: none;
}

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

img,
svg,
video {
  display: block;
}

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

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

::placeholder {
  opacity: 1;
}

[hidden] {
  display: none !important;
}

/* ——— Base ——— */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: rgb(var(--navy-900));
  color: rgb(var(--cream-100));
}

main {
  flex: 1;
}

::selection {
  background-color: rgb(var(--wood-500));
  color: rgb(var(--navy-950));
}

/* ——— Utility ——— */
.shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.serif {
  font-family: var(--font-display);
}

.text-wood {
  background-image: linear-gradient(to bottom right, rgb(var(--wood-200)), rgb(var(--wood-400)), rgb(var(--wood-600)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-wood-solid {
  color: rgb(var(--wood-600));
}

/* Texture di grana sui fondi scuri */
.grain {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.section {
  padding-block: 6rem;
  scroll-margin-top: 6rem;
}

.bg-navy-900 { background-color: rgb(var(--navy-900)); }
.bg-navy-950 { background-color: rgb(var(--navy-950)); }

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  pointer-events: none;
}

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

/* Foto e video che riempiono il contenitore */
.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.media {
  background-color: rgb(var(--navy-950));
}

/* Icone */
.i-3-5 { width: 0.875rem; height: 0.875rem; }
.i-4 { width: 1rem; height: 1rem; }
.i-4-5 { width: 1.125rem; height: 1.125rem; }
.i-5 { width: 1.25rem; height: 1.25rem; }
.i-6 { width: 1.5rem; height: 1.5rem; }

.arrow {
  transition: transform 0.3s var(--ease);
}

/* ——— Pulsanti ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s var(--ease);
}

.btn:focus-visible,
.focus-ring:focus-visible {
  outline: 2px solid rgb(var(--wood-400));
  outline-offset: 4px;
}

.btn--primary {
  background-color: rgb(var(--wood-500));
  color: rgb(var(--navy-950));
  box-shadow: 0 16px 40px -16px rgb(189 130 72 / 0.9);
}

.btn--outline {
  border: 1px solid rgb(var(--cream-100) / 0.25);
  color: rgb(var(--cream-100));
}

.btn--dark {
  background-color: rgb(var(--navy-900));
  color: rgb(var(--cream-100));
}

.btn--ghost {
  border: 1px solid rgb(var(--cream-100) / 0.15);
  color: rgb(var(--wood-300));
}

.btn--submit {
  width: 100%;
  margin-top: 2rem;
  padding-block: 1rem;
  font-weight: 600;
}

/* ——— Intestazione di sezione ——— */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgb(var(--wood-400));
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: rgb(var(--wood-500) / 0.6);
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 42rem;
}

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

.heading--wide {
  max-width: none;
}

.heading__title {
  font-size: 2.25rem;
  line-height: 1.08;
  text-wrap: balance;
  color: rgb(var(--cream-50));
}

.heading__text {
  font-size: 1rem;
  line-height: 1.625;
  text-wrap: pretty;
  color: rgb(var(--cream-200) / 0.7);
}

.heading--light .eyebrow {
  color: rgb(var(--wood-600));
}

.heading--light .eyebrow::before {
  background-color: rgb(var(--wood-600) / 0.5);
}

.heading--light .heading__title {
  color: rgb(var(--navy-900));
}

.heading--light .heading__text {
  color: rgb(var(--navy-900) / 0.7);
}

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

.header.is-solid {
  border-bottom-color: rgb(var(--cream-100) / 0.1);
  background-color: rgb(var(--navy-950) / 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  flex-shrink: 0;
  width: auto;
  height: 2.75rem;
  transition: transform 0.5s var(--ease);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: rgb(var(--cream-50));
}

.logo__sub {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: rgb(var(--wood-400));
}

.nav {
  display: none;
}

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

.nav a {
  position: relative;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  font-weight: 500;
  color: rgb(var(--cream-100) / 0.75);
  transition: color 0.15s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  width: 0;
  height: 1px;
  background-color: rgb(var(--wood-400));
  transition: all 0.3s var(--ease);
}

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

.header__cta {
  display: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(var(--cream-100) / 0.15);
  border-radius: 0.75rem;
  color: rgb(var(--cream-100));
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.menu-btn .icon-close,
.menu-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
  background-color: rgb(var(--navy-950) / 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.mobile-menu nav {
  padding-block: 2rem;
}

.mobile-menu li + li {
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
}

.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-50));
  transition: color 0.15s var(--ease);
}

.mobile-menu li a span {
  color: rgb(var(--wood-500));
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 2rem;
}

/* ——— Hero ——— */
.hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background-color: rgb(var(--navy-900));
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow-a {
  left: -10rem;
  top: 0;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(20, 70, 119, 0.45), rgba(20, 70, 119, 0) 70%);
}

.hero__glow-b {
  right: -5rem;
  top: 33.3333%;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(156, 103, 51, 0.4), rgba(156, 103, 51, 0) 70%);
}

.hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 16rem;
  background-image: linear-gradient(to top, rgb(var(--navy-950)), transparent);
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 4rem;
}

.hero__title {
  margin-top: 1.75rem;
  font-size: 3rem;
  line-height: 1.02;
  text-wrap: balance;
  color: rgb(var(--cream-50));
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.625;
  text-wrap: pretty;
  color: rgb(var(--cream-200) / 0.75);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 3rem;
}

.rating__stars {
  display: flex;
  gap: 0.125rem;
  color: rgb(var(--wood-400));
}

.rating__text {
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.7);
}

.rating__text strong {
  font-weight: 600;
  color: rgb(var(--cream-50));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 32rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
}

.stats__value {
  display: block;
  font-size: 1.875rem;
  line-height: 1.2;
  color: rgb(var(--wood-300));
}

.stats__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--cream-200) / 0.55);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--cream-100) / 0.1);
  border-radius: 2rem;
  box-shadow: var(--shadow-glow);
}

.hero__overlay {
  background-image: linear-gradient(to top, rgb(var(--navy-950)), rgb(var(--navy-950) / 0.3), transparent);
}

.hero__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.75rem;
}

.hero__caption-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-50));
}

.hero__caption-text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.7);
}

.float-card {
  display: none;
  position: absolute;
  bottom: -2rem;
  left: -1rem;
  width: 14rem;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgb(var(--cream-100) / 0.1);
  border-radius: 1rem;
  background-color: rgb(var(--navy-850) / 0.9);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.float-card__img {
  position: relative;
  width: 100%;
  height: 4rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.float-card__label {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--wood-400));
}

.float-card__text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.375;
  color: rgb(var(--cream-100) / 0.85);
}

.stamp {
  position: absolute;
  top: 2rem;
  right: -0.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgb(var(--wood-500) / 0.4);
  border-radius: 9999px;
  background-color: rgb(var(--navy-950) / 0.8);
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--wood-300));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.scroll-hint {
  display: none;
  margin-top: 5rem;
}

.scroll-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgb(var(--cream-200) / 0.5);
  transition: color 0.15s var(--ease);
}

.scroll-hint svg {
  animation: bounce 1s infinite;
}

/* ——— Marquee ——— */
.marquee {
  position: relative;
  padding-block: 1.75rem;
  border-block: 1px solid rgb(var(--cream-100) / 0.1);
  background-color: rgb(var(--navy-950));
}

.marquee__mask {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marquee 42s linear infinite;
}

.marquee__track li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
}

.marquee__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: rgb(var(--cream-100) / 0.6);
}

.marquee__star {
  color: rgb(var(--wood-500));
}

/* ——— Prodotti ——— */
.products__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.link-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  font-weight: 500;
  color: rgb(var(--wood-300));
  transition: color 0.15s var(--ease);
}

.cat-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.cat-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(var(--cream-100) / 0.1);
  border-radius: 1rem;
  background-color: rgb(var(--navy-850) / 0.6);
  transition: all 0.5s var(--ease);
}

.cat-card__media {
  position: relative;
  height: 13rem;
  overflow: hidden;
}

.cat-card__zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.cat-card__overlay {
  background-image: linear-gradient(to top, rgb(var(--navy-850)), rgb(var(--navy-900) / 0.4), transparent);
}

.cat-card__icon {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(var(--wood-400) / 0.3);
  border-radius: 0.75rem;
  background-color: rgb(var(--navy-950) / 0.7);
  color: rgb(var(--wood-300));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cat-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cat-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: rgb(var(--cream-50));
}

.cat-card__body p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.65);
}

/* ——— Chi siamo ——— */
.about {
  background-color: rgb(var(--cream-50));
  color: rgb(var(--navy-900));
}

.about__grid {
  display: grid;
  align-items: start;
  gap: 4rem;
}

.about__visual {
  position: relative;
}

.about__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 1.75rem;
  box-shadow: 0 40px 90px -50px rgba(0, 24, 50, 0.7);
}

.about__overlay {
  background-image: linear-gradient(to top, rgb(var(--navy-950) / 0.6), transparent);
}

.about__badge {
  position: absolute;
  bottom: -2rem;
  right: 0;
  width: 14rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: rgb(var(--navy-900));
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0, 24, 50, 0.8);
}

.about__badge-value {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: rgb(var(--wood-300));
}

.about__badge-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.625;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--cream-200) / 0.7);
}

.about__diffs {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin-top: 3rem;
}

.diff {
  display: flex;
  gap: 1rem;
}

.diff__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: rgb(var(--navy-900) / 0.05);
  color: rgb(var(--wood-600));
  box-shadow: 0 0 0 1px rgb(var(--navy-900) / 0.1);
}

.diff h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: calc(14 / 9);
  font-weight: 600;
  color: rgb(var(--navy-900));
}

.diff p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(var(--navy-900) / 0.65);
}

.about__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.about__cta p {
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--navy-900) / 0.55);
}

/* ——— Processo ——— */
.process__glow {
  left: 50%;
  top: 0;
  width: 820px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 70, 119, 0.4), rgba(20, 70, 119, 0) 70%);
}

.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}

.step {
  position: relative;
}

.step__num {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgb(var(--wood-500) / 0.35);
  border-radius: 9999px;
  background-color: rgb(var(--navy-950));
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: calc(14 / 9);
  color: rgb(var(--wood-300));
}

.step h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: rgb(var(--cream-50));
}

.step p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.65);
}

/* ——— Galleria ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.project {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(var(--cream-100) / 0.1);
  border-radius: 1rem;
  text-align: left;
  cursor: zoom-in;
}

.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.project__zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.9s ease-out;
}

.project__overlay {
  background-image: linear-gradient(to top, rgb(var(--navy-950)), rgb(var(--navy-950) / 0.25), transparent);
}

.project__hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(var(--cream-100) / 0.2);
  border-radius: 9999px;
  background-color: rgb(var(--navy-950) / 0.6);
  color: rgb(var(--cream-100));
  opacity: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s var(--ease);
}

.project:focus-visible .project__hint {
  opacity: 1;
}

.project__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.project__tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgb(var(--wood-400) / 0.3);
  border-radius: 9999px;
  background-color: rgb(var(--navy-950) / 0.6);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--wood-300));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.project__body h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
  color: rgb(var(--cream-50));
}

.project__body p {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.7);
}

.projects__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3.5rem;
  text-align: center;
}

.projects__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.projects__more p {
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.5);
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: rgb(var(--navy-950) / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox__bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-bottom: 1rem;
}

.lightbox__count {
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--cream-200) / 0.5);
}

.lightbox__stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 0;
  max-width: 72rem;
  margin-inline: auto;
}

.lightbox figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox figure img,
.lightbox figure video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 15rem);
  max-height: calc(100dvh - 15rem);
  border-radius: 0.75rem;
}

.lightbox figure img {
  object-fit: contain;
}

.lightbox figure video {
  background-color: rgb(var(--navy-950));
}

.lightbox figcaption {
  flex-shrink: 0;
  max-width: 36rem;
  margin-top: 1.25rem;
  text-align: center;
}

.lightbox__tag {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--wood-400));
}

.lightbox__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: rgb(var(--cream-50));
}

.lightbox__text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.65);
}

.round-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(var(--cream-100) / 0.15);
  border-radius: 9999px;
  color: rgb(var(--cream-100));
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.round-btn--close {
  border-color: rgb(var(--cream-100) / 0.2);
}

.round-btn:focus-visible {
  outline: 2px solid rgb(var(--wood-400));
  outline-offset: 2px;
}

/* ——— Testimonianze ——— */
.reviews {
  background-color: rgb(var(--cream-100));
  color: rgb(var(--navy-900));
}

.reviews__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgb(var(--cream-50));
  box-shadow: 0 0 0 1px rgb(var(--navy-900) / 0.05), 0 24px 60px -45px rgba(0, 24, 50, 0.6);
}

.review__quote {
  width: 1.75rem;
  height: 1.75rem;
  color: rgb(var(--wood-400));
}

.review blockquote {
  flex: 1;
  margin-top: 1.5rem;
  line-height: 1.625;
  text-wrap: pretty;
  color: rgb(var(--navy-900) / 0.8);
}

.review__stars {
  display: flex;
  gap: 0.125rem;
  margin-top: 1.5rem;
  color: rgb(var(--wood-500));
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--navy-900) / 0.1);
}

.review__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: rgb(var(--navy-900));
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--wood-300));
}

.review__name,
.review__role {
  display: block;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
}

.review__name {
  font-weight: 600;
  color: rgb(var(--navy-900));
}

.review__role {
  color: rgb(var(--navy-900) / 0.55);
}

/* ——— FAQ ——— */
.faq {
  max-width: 48rem;
  margin-top: 3.5rem;
  margin-inline: auto;
  border-block: 1px solid rgb(var(--cream-100) / 0.1);
}

.faq details + details {
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  list-style: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: calc(14 / 9);
  color: rgb(var(--cream-50));
  cursor: pointer;
  transition: color 0.15s var(--ease);
}

.faq__plus {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(var(--cream-100) / 0.15);
  border-radius: 9999px;
  color: rgb(var(--wood-300));
  transition: transform 0.3s var(--ease);
}

.faq details[open] .faq__plus {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.75rem;
  line-height: 1.625;
  text-wrap: pretty;
  color: rgb(var(--cream-200) / 0.7);
}

/* ——— Contatto ——— */
.contact__glow {
  right: -8rem;
  top: 2.5rem;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(156, 103, 51, 0.45), rgba(156, 103, 51, 0) 70%);
}

.contact__grid {
  display: grid;
  align-items: start;
  gap: 4rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s var(--ease);
}

.contact-item__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(var(--cream-100) / 0.12);
  border-radius: 0.75rem;
  background-color: rgb(var(--navy-950) / 0.5);
  color: rgb(var(--wood-300));
  transition: border-color 0.15s var(--ease);
}

.contact-item__label {
  display: block;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--cream-200) / 0.45);
}

.contact-item__value {
  display: block;
  margin-top: 0.25rem;
  color: rgb(var(--cream-50));
}

.form {
  padding: 1.75rem;
  border: 1px solid rgb(var(--cream-100) / 0.1);
  border-radius: 1.5rem;
  background-color: rgb(var(--navy-850) / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.form__row {
  display: grid;
  gap: 1.5rem;
}

.form__block {
  margin-top: 2rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--cream-200) / 0.6);
}

.field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(var(--cream-100) / 0.15);
  border-radius: 0.75rem;
  background-color: rgb(var(--navy-950) / 0.4);
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-50));
  outline: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.field::placeholder {
  color: rgb(var(--cream-200) / 0.35);
}

.field:focus {
  border-color: rgb(var(--wood-400) / 0.7);
  background-color: rgb(var(--navy-950) / 0.7);
}

textarea.field {
  resize: none;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pill {
  padding: 0.625rem 1rem;
  border: 1px solid rgb(var(--cream-100) / 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.65);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.pill:has(:checked) {
  border-color: rgb(var(--wood-400));
  background-color: rgb(var(--wood-500) / 0.15);
  color: rgb(var(--wood-200));
}

.pill:has(:focus-visible) {
  outline: 2px solid rgb(var(--wood-400));
  outline-offset: 2px;
}

.form__note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-200) / 0.45);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
  background-color: rgb(var(--navy-950));
}

.footer__inner {
  padding-block: 4rem;
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

.footer__about {
  max-width: 24rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.6);
}

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

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(var(--cream-100) / 0.12);
  border-radius: 0.75rem;
  color: rgb(var(--cream-200) / 0.7);
  transition: all 0.15s var(--ease);
}

.footer__title {
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgb(var(--wood-400));
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-200) / 0.6);
}

.footer__list a {
  transition: color 0.15s var(--ease);
}

.footer__list--nav {
  font-size: 1rem;
  line-height: 1.5;
}

.footer__list--nav a {
  font-size: 0.875rem;
  line-height: calc(10 / 7);
}

.footer__list--contact {
  gap: 1rem;
}

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

.footer__contact svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: rgb(var(--wood-500));
}

.footer__hours {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.55);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-200) / 0.55);
}

.footer__bottom a {
  text-underline-offset: 4px;
  transition: color 0.15s var(--ease);
}

/* ——— Pulsante WhatsApp flottante ——— */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: rgb(var(--navy-950));
  box-shadow: 0 18px 45px -15px rgba(37, 211, 102, 0.6);
  transition: all 0.3s var(--ease);
}

.fab span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

/* ——— Avviso cookie ——— */
.cookie {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 1rem;
  border-top: 1px solid rgb(var(--cream-100) / 0.12);
  border-radius: 1rem 1rem 0 0;
  background-color: rgb(var(--navy-850) / 0.95);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cookie p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.75);
}

.cookie__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Il menu mobile aperto non deve finire sotto l'avviso */
.header:has(.menu-btn[aria-expanded="true"]) ~ .cookie {
  display: none;
}

.cookie button {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.cookie button:focus-visible {
  outline: 2px solid rgb(var(--wood-400));
  outline-offset: 2px;
}

.cookie__accept {
  background-color: rgb(var(--wood-500));
  font-weight: 600;
  color: rgb(var(--navy-950));
}

.cookie__reject {
  border: 1px solid rgb(var(--cream-100) / 0.2);
  color: rgb(var(--cream-100));
}

.cookie a {
  flex-shrink: 0;
  padding-inline: 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-200) / 0.5);
  text-underline-offset: 4px;
  transition: color 0.15s var(--ease);
}

/* Su telefono, finché l'avviso è aperto, il pulsante WhatsApp resta nascosto */
@media (max-width: 39.99rem) {
  body:has(.cookie:not([hidden])) .fab {
    display: none;
  }
}

/* ——— Pagina 404 ——— */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 1.5rem;
  background-color: rgb(var(--navy-900));
  text-align: center;
}

.not-found__code {
  margin-top: 3rem;
  font-size: 6rem;
  line-height: 1;
}

.not-found__title {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.25;
  text-wrap: balance;
  color: rgb(var(--cream-50));
}

.not-found__text {
  max-width: 28rem;
  margin-top: 1.25rem;
  line-height: 1.625;
  text-wrap: pretty;
  color: rgb(var(--cream-200) / 0.7);
}

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

.not-found__actions svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (min-width: 40rem) {
  .not-found__code { font-size: 8rem; }
  .not-found__title { font-size: 3rem; }
  .not-found__actions { flex-direction: row; }
}

/* ——— Pagina privacy ——— */
.privacy {
  padding-top: 9rem;
  padding-bottom: 6rem;
  background-color: rgb(var(--navy-900));
}

.privacy__inner {
  max-width: 48rem;
}

.privacy__date {
  font-size: 0.75rem;
  line-height: calc(4 / 3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--wood-400));
}

.privacy__title {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.25;
  color: rgb(var(--cream-50));
}

.privacy__lead {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.75);
}

.privacy__block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(var(--cream-100) / 0.1);
}

.privacy__block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(4 / 3);
  color: rgb(var(--cream-50));
}

.privacy__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  line-height: 1.625;
  color: rgb(var(--cream-200) / 0.7);
}

.consent-reset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.consent-reset button {
  padding: 0.625rem 1.5rem;
  border: 1px solid rgb(var(--cream-100) / 0.25);
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--cream-100));
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.consent-reset button:focus-visible {
  outline: 2px solid rgb(var(--wood-400));
  outline-offset: 2px;
}

.consent-reset span {
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--wood-300));
}

.privacy__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  font-size: 0.875rem;
  line-height: calc(10 / 7);
  color: rgb(var(--wood-300));
  text-underline-offset: 4px;
  transition: color 0.15s var(--ease);
}

@media (min-width: 40rem) {
  .privacy { padding-top: 11rem; padding-bottom: 8rem; }
  .privacy__title { font-size: 3rem; }
  .privacy__block h2 { font-size: 1.875rem; line-height: 1.2; }
}

@media (hover: hover) {
  .consent-reset button:hover {
    border-color: rgb(var(--wood-400) / 0.7);
    color: rgb(var(--wood-200));
  }
  .privacy__back:hover {
    color: rgb(var(--wood-200));
    text-decoration: underline;
  }
}

/* ——— Animazione di entrata allo scroll ———
   Se il JS non parte, l'animazione di sicurezza mostra comunque tutto dopo 2s. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  animation: reveal-fallback 0.4s ease-out 2s forwards;
}

[data-reveal="armed"] {
  animation: none;
}

[data-reveal="visible"] {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ——— Da 640px ——— */
@media (min-width: 40rem) {
  .shell { padding-inline: 2rem; }
  .section { padding-block: 8rem; }

  .heading__title { font-size: 3rem; }
  .heading__text { font-size: 1.125rem; line-height: 1.625; }

  .header__cta { display: block; }

  .hero { padding-bottom: 8rem; }
  .hero__title { font-size: 3.75rem; }
  .hero__actions { flex-direction: row; align-items: center; }
  .stats__value { font-size: 2.25rem; line-height: calc(10 / 9); }
  .hero__caption { padding: 2.25rem; text-align: right; }
  .hero__caption-title,
  .hero__caption-text { margin-left: auto; max-width: 62%; }
  .float-card { display: block; left: -2.5rem; }
  .stamp { right: -1.5rem; }

  .marquee__word { font-size: 1.5rem; line-height: calc(4 / 3); }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__badge { right: -2rem; }
  .about__diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery { gap: 1.25rem; }
  .project__body { padding: 1.25rem; }
  .projects__buttons { flex-direction: row; }

  .lightbox { padding: 1.5rem; }
  .lightbox__stage { gap: 1.25rem; }
  .lightbox__title { font-size: 1.5rem; line-height: calc(4 / 3); }
  .round-btn--nav { width: 3.5rem; height: 3.5rem; }
  .round-btn--nav svg { width: 1.5rem; height: 1.5rem; }

  .faq summary { font-size: 1.25rem; line-height: 1.4; }

  .form { padding: 2.5rem; }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__inner { padding-block: 5rem; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }

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

  .cookie {
    right: auto;
    bottom: 2rem;
    left: 2rem;
    max-width: 28rem;
    padding: 1.5rem;
    border: 1px solid rgb(var(--cream-100) / 0.12);
    border-radius: 1rem;
  }
  .cookie__actions { gap: 0.625rem; margin-top: 1.25rem; }
  .cookie button { flex: none; padding: 0.625rem 1.5rem; }
  .cookie a { margin-left: auto; padding-inline: 0; text-align: left; }
}

/* ——— Da 1024px ——— */
@media (min-width: 64rem) {
  .shell { padding-inline: 3rem; }

  /* A destra, sopra il pulsante WhatsApp: così non copre i pulsanti della hero */
  .cookie { right: 2rem; bottom: 6.5rem; left: auto; }

  .heading__title { font-size: 3.4rem; }

  .nav { display: block; }
  .menu-btn,
  .mobile-menu { display: none !important; }

  .hero { padding-top: 10rem; padding-bottom: 10rem; }
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
  }
  .hero__col { grid-column: span 6; }
  .hero__title { font-size: 4.6rem; }
  .hero__visual { max-width: none; }
  .float-card { animation: float 7s ease-in-out infinite; }
  .scroll-hint { display: block; }

  .products__top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about__media { grid-column: span 5; }
  .about__copy { grid-column: span 7; }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .steps::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 1.75rem;
    height: 1px;
    background-image: linear-gradient(to right, transparent, rgb(var(--wood-500) / 0.3), transparent);
  }

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

  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem;
  }
  .contact__info { grid-column: span 5; }
  .contact__form { grid-column: span 7; }

  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__col-4 { grid-column: span 4; }
  .footer__col-3 { grid-column: span 3; }
  .footer__col-2 { grid-column: span 2; }
}

/* ——— Da 1280px ——— */
@media (min-width: 80rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ——— Hover (solo dispositivi con puntatore) ——— */
@media (hover: hover) {
  .logo:hover img { transform: scale(1.05); }
  .nav a:hover { color: rgb(var(--cream-50)); }
  .nav a:hover::after { width: 100%; }
  .menu-btn:hover,
  .round-btn:hover { border-color: rgb(var(--wood-400) / 0.6); color: rgb(var(--wood-300)); }
  .mobile-menu li a:hover { color: rgb(var(--wood-300)); }

  .btn--primary:hover {
    background-color: rgb(var(--wood-400));
    box-shadow: 0 20px 50px -14px rgba(189, 130, 72, 0.75);
  }
  .btn--submit:hover { box-shadow: 0 16px 40px -16px rgb(189 130 72 / 0.9); }
  .btn--outline:hover {
    border-color: rgb(var(--wood-400) / 0.7);
    background-color: rgb(var(--wood-500) / 0.1);
    color: rgb(var(--wood-200));
  }
  .btn--dark:hover { background-color: rgb(var(--navy-800)); }
  .btn--ghost:hover { color: rgb(var(--wood-200)); }
  .btn:hover .arrow,
  .link-arrow:hover .arrow { transform: translateX(0.25rem); }

  .scroll-hint a:hover,
  .footer__list a:hover,
  .footer__bottom a:hover,
  .cookie a:hover { color: rgb(var(--wood-300)); }
  .footer__bottom a:hover,
  .cookie a:hover { text-decoration: underline; }
  .link-arrow:hover { color: rgb(var(--wood-200)); }

  .cat-card:hover {
    transform: translateY(-0.375rem);
    border-color: rgb(var(--wood-500) / 0.4);
    box-shadow: var(--shadow-card);
  }
  .cat-card:hover .cat-card__zoom { transform: scale(1.05); }

  .project:hover .project__zoom { transform: scale(1.06); }
  .project:hover .project__hint { opacity: 1; }

  .faq summary:hover { color: rgb(var(--wood-200)); }

  a.contact-item:hover { color: rgb(var(--wood-200)); }
  a.contact-item:hover .contact-item__icon { border-color: rgb(var(--wood-400) / 0.5); }
  .pill:hover:not(:has(:checked)) {
    border-color: rgb(var(--cream-100) / 0.35);
    color: rgb(var(--cream-100));
  }

  .social a:hover { border-color: rgb(var(--wood-400) / 0.6); color: rgb(var(--wood-300)); }

  .fab:hover { padding-right: 1.5rem; }
  .fab:hover span { max-width: 10rem; }

  .cookie__accept:hover { background-color: rgb(var(--wood-400)); }
  .cookie__reject:hover { border-color: rgb(var(--wood-400) / 0.6); color: rgb(var(--wood-200)); }
}

/* ——— Meno movimento ——— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .marquee__track,
  .float-card {
    animation: none !important;
  }
}
