/* ==========================================================================
   FLOOR CERAMICHE — design system
   Materiali, pietra, gres porcellanato — Arcole (Verona)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Colore: bianco + grigio antracite + rosso Floor (dal logo) --- */
  --stone-950: #1b1b1d;
  --stone-900: #252528;
  --stone-800: #38383c;
  --stone-700: #4c4c51;
  --stone-600: #66666b;
  --stone-400: #97979c;
  --stone-300: #c5c5c8;
  --stone-200: #e3e3e5;
  --stone-100: #f1f1f2;

  --cream: #ffffff;
  --cream-alt: #f6f6f7;
  --paper: #ffffff;

  --clay: #d4372c;
  --clay-dark: #b02a21;
  --clay-light: #e0483b;
  --brass: #1b1b1d;

  --ink: #1a1a1c;
  --ink-soft: #55555a;

  --success: #3f6b4a;
  --border: rgba(27, 27, 29, 0.12);
  --border-strong: rgba(27, 27, 29, 0.22);

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(27, 27, 29, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(27, 27, 29, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(27, 27, 29, 0.32);

  --radius-sm: 2px;
  --radius-md: 6px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--stone-950);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

section { position: relative; }
section[id] { scroll-margin-top: 96px; }

/* ---------- Grana / texture (evoca materiale) ---------- */
.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--clay);
}

.eyebrow.on-dark { color: var(--stone-300); }
.eyebrow.on-dark::before { background: var(--stone-400); }

.h-display {
  font-size: clamp(2.1rem, 7vw + 0.6rem, 5rem);
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(1.7rem, 4vw + 0.9rem, 3rem);
}

.lede {
  font-size: clamp(1rem, 1.2vw + 0.75rem, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover { background: var(--clay-dark); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--stone-950);
  background: transparent;
}
.btn-outline:hover { border-color: var(--stone-950); background: var(--stone-950); color: #fff; }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: 100%;
}

.brand .word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--stone-950);
  letter-spacing: -0.01em;
}

.brand .word em {
  font-style: normal;
  color: var(--clay);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.3rem;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .nav-links { display: flex; }
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stone-700);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--stone-950); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

/* Sottomenu a tendina */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item > a svg {
  width: 11px;
  height: 11px;
  transition: transform 0.25s var(--ease);
}

.nav-item:hover > a svg,
.nav-item:focus-within > a svg { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--clay);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-links .nav-sub a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.nav-links .nav-sub a::after { display: none; }
.nav-links .nav-sub a:hover { background: var(--stone-100); color: var(--clay-dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stone-950);
  white-space: nowrap;
}

.nav-phone svg { width: 17px; height: 17px; color: var(--clay); }

@media (min-width: 768px) {
  .nav-phone { display: flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--stone-950);
}

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
}

.menu-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 14px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--stone-800);
}

.mobile-menu a[aria-current="page"] { color: var(--clay); }

.mobile-menu .sub a {
  padding: 11px 4px 11px 22px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--stone-600);
  border-bottom-style: dashed;
}

.mobile-menu .btn {
  margin-top: 16px;
  justify-content: center;
  color: #fff;
  border-bottom: 0;
}

.mobile-menu .sub {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1200px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--stone-950);
  color: #fff;
  padding: 88px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  padding-bottom: 72px;
  min-width: 0;
}

.hero-inner > * { min-width: 0; }

/* Evita overflow orizzontale: gli item grid non devono eccedere la larghezza in base al contenuto */
.feature-grid > *,
.collection-grid > *,
.stat-strip > *,
.swatch-grid > *,
.app-list > *,
.contact-grid > *,
.footer-grid > *,
.process-item > *,
.form-row > *,
.hero-stats > *,
.feature-grid-6 > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    padding-bottom: 96px;
  }
}

.hero h1 { color: #fff; }

.hero .lede { color: var(--stone-300); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 56px;
}

.hero-stats div {
  padding: 22px 20px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats div:first-child { border-left: none; padding-left: 0; }

.hero-stats .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  color: #fff;
}

.hero-stats .label {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--stone-400);
  letter-spacing: 0.02em;
}

/* Griglia di campioni materiale, decorativa nell'hero */
.swatch-field {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-self: stretch;
}

.swatch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.swatch.m-travertino { background: linear-gradient(155deg, #d8c8ac, #b79c74 45%, #8f7a58); }
.swatch.m-marmo { background: linear-gradient(160deg, #efe9e2, #d6cfc4 40%, #a79a8a 100%); }
.swatch.m-cemento { background: linear-gradient(160deg, #9b968d, #6b6660 55%, #4a4640); }
.swatch.m-legno { background: linear-gradient(160deg, #a9784f, #7c5638 55%, #533a26); }
.swatch.m-antracite { background: linear-gradient(160deg, #4a4642, #2c2926 55%, #17140f); }
.swatch.m-bianco { background: linear-gradient(160deg, #ffffff, #e9e4da 60%, #d3ccbe); }
.swatch.m-terracotta { background: linear-gradient(160deg, #d9764c, #b1502c 55%, #8f3f22); }
.swatch.m-grigio { background: linear-gradient(160deg, #c8c3ba, #a19a8f 55%, #726a5f); }

/* ---------- Sezioni generiche ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

@media (min-width: 1024px) {
  .section { padding: 128px 0; }
}

.section-alt { background: var(--cream-alt); }
.section-dark { background: var(--stone-950); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: var(--stone-300); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 767px) {
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

/* ---------- Griglia funzionalità / valori ---------- */
.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--paper);
  padding: 36px 28px;
  transition: background 0.25s var(--ease);
}
.feature-card:hover { background: var(--cream); }

.feature-card .idx {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--clay);
  margin-bottom: 22px;
  display: block;
}

.feature-card .icon {
  width: 34px;
  height: 34px;
  color: var(--stone-950);
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Card prodotto / collezione ---------- */
.collection-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
}

.collection-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.collection-card .swatch { aspect-ratio: 16 / 11; border-radius: 0; box-shadow: none; }

.collection-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* ---------- Galleria foto reali magazzino ---------- */
.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

.photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--stone-100);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.photo-card:hover img { transform: scale(1.06); }

.collection-card .body { padding: 24px; }

.collection-card .kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.collection-card h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.collection-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--stone-700);
}

/* ---------- Striscia numeri / statistiche ---------- */
.stat-strip {
  display: grid;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-strip .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  color: var(--clay);
}
.stat-strip .label {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--stone-600);
}

/* ---------- Citazione / valori ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem);
  line-height: 1.35;
  color: var(--stone-950);
  border-left: 3px solid var(--clay);
  padding-left: 28px;
}

/* ---------- Timeline / processo ---------- */
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .process-item { grid-template-columns: 90px 220px 1fr; }
}

.process-item .idx {
  font-family: var(--font-display);
  color: var(--clay);
  font-size: 1.1rem;
}

.process-item h4 { font-size: 1.05rem; }

.process-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Gallery filtro (stock ceramica) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone-700);
  background: transparent;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover { border-color: var(--stone-950); }

.filter-btn.is-active {
  background: var(--stone-950);
  border-color: var(--stone-950);
  color: #fff;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }

.swatch-card {
  opacity: 1;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.swatch-card[hidden] { display: none; }

.swatch-card .swatch {
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.swatch-card .swatch:hover { transform: scale(1.02); }

.swatch-card .meta {
  margin-top: 12px;
}

.swatch-card .meta .name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--stone-950);
}

.swatch-card .meta .fmt {
  font-size: 0.78rem;
  color: var(--stone-600);
  margin-top: 2px;
}

/* ---------- Applicazioni (pietre) ---------- */
.app-list {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) { .app-list { grid-template-columns: repeat(2, 1fr); } }

.app-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.app-item .icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--clay);
}

.app-item h4 { font-size: 1rem; margin-bottom: 6px; }
.app-item p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--stone-950);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 56px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.cta-banner h3 { color: #fff; font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); max-width: 32ch; }
.cta-banner p { color: var(--stone-300); margin-top: 10px; max-width: 40ch; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-banner > * { position: relative; z-index: 2; }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card .icon {
  width: 22px;
  height: 22px;
  color: var(--clay);
  flex: none;
  margin-top: 2px;
}

.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 0.94rem; color: var(--ink-soft); }
.contact-info-card a:hover { color: var(--clay); }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone-800);
}

.form-field .req { color: var(--clay); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(212, 55, 44, 0.18);
}

.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.form-note {
  font-size: 0.82rem;
  color: var(--stone-600);
  margin-top: -6px;
  margin-bottom: 20px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(63, 107, 74, 0.1);
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 18px;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone-950);
  color: var(--stone-300);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}

.footer-grid .word { color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.footer-grid .word em { color: var(--clay-light); font-style: normal; }

.footer-grid p { font-size: 0.9rem; line-height: 1.7; color: var(--stone-400); margin-top: 14px; max-width: 34ch; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: var(--stone-300); }
.footer-col a:hover { color: var(--clay-light); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { background: var(--clay); border-color: var(--clay); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--stone-600);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Breadcrumb / page header interno ---------- */
.page-hero {
  background: var(--stone-950);
  color: #fff;
  padding: 150px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: var(--stone-300); margin-top: 18px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--stone-400);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- WhatsApp flottante ---------- */
.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease);
}
.float-cta:hover { transform: scale(1.08); }
.float-cta svg { width: 26px; height: 26px; }

/* ---------- Griglia servizi (6 pillar) ---------- */
.feature-grid-6 {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .feature-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.section-dark .feature-grid-6,
.section-dark .feature-card { background: transparent; }
.section-dark .feature-grid-6 { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.14); }
.section-dark .feature-card { background: var(--stone-950); }
.section-dark .feature-card:hover { background: var(--stone-800); }
.section-dark .feature-card h3 { color: #fff; }
.section-dark .feature-card p { color: var(--stone-300); }
.section-dark .feature-card .icon { color: #fff; }

/* ---------- Trust / social strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 12px;
}

.trust-strip .tag {
  padding: 9px 16px;
  font-size: 0.82rem;
  background: var(--paper);
}

.trust-fb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust-fb svg { width: 18px; height: 18px; color: var(--clay); flex: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.only-mobile { display: block; }
.only-desktop { display: none; }
@media (min-width: 1200px) {
  .only-mobile { display: none; }
  .only-desktop { display: block; }
}

/* ---------- Blocchi prodotto (pagine Pavimenti / Infissi / Lavori) ---------- */
.topic {
  display: grid;
  gap: 24px;
}

.topic > * { min-width: 0; }

@media (min-width: 900px) {
  .topic {
    grid-template-columns: 0.85fr 1.3fr;
    gap: 72px;
    align-items: start;
  }
}

.topic .icon {
  width: 38px;
  height: 38px;
  color: var(--clay);
  margin-bottom: 18px;
}

.topic .copy p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.topic .copy p + p { margin-top: 16px; }

.topic .copy .btn { margin-top: 28px; }

.topic .tag-row { margin-top: 22px; }

a.feature-card {
  display: block;
  color: inherit;
}

a.feature-card:hover h3 { color: var(--clay-dark); }

/* ---------- Foto lavori: didascalie e immagini nei blocchi prodotto ---------- */
.photo-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(to top, rgba(20, 20, 22, 0.72), rgba(20, 20, 22, 0));
}

.topic .media {
  margin: 26px 0 0;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--stone-100);
}

.topic .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a.photo-card { display: block; color: #fff; }

@media (max-width: 639px) {
  .photo-card .cap { font-size: 0.72rem; padding: 28px 10px 10px; }
}

/* ==========================================================================
   V2 — foto di sfondo, separatori sagomati, card immagine, animazioni leggere
   Base bianca · pulsanti rossi · testi grigi (chiari su fondi scuri)
   ========================================================================== */

/* ---------- Sfondi fotografici (hero / page-hero / bande) ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 50%;
  animation: kenburns 24s ease-out both;
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 22, 0.93) 0%, rgba(20, 20, 22, 0.80) 48%, rgba(20, 20, 22, 0.45) 100%),
    linear-gradient(0deg, rgba(20, 20, 22, 0.55), rgba(20, 20, 22, 0) 45%);
}

@media (max-width: 767px) {
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(20, 20, 22, 0.88), rgba(20, 20, 22, 0.80));
  }
}

@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* emblema Floor come filigrana */
.emblem-wm {
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -18%;
  width: min(60vw, 560px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.hero .hero-inner,
.page-hero .container { position: relative; z-index: 2; }

.hero .grain,
.page-hero .grain { z-index: 1; }

/* ---------- Separatori sagomati ---------- */
[class*="edge-"] { position: relative; }

.edge-b::after,
.edge-slant::after,
.edge-slant-l::after,
.edge-arrow::after,
.edge-steps::after,
.edge-notch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--edge-h, clamp(34px, 5.5vw, 88px));
  background: var(--edge-color, #fff);
  z-index: 3;
  pointer-events: none;
}

.edge-slant::after   { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.edge-slant-l::after { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.edge-arrow::after   { clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%); }
.edge-notch::after   { clip-path: polygon(0 100%, 0 60%, 42% 60%, 50% 0, 58% 60%, 100% 60%, 100% 100%); }
.edge-steps::after {
  clip-path: polygon(
    0 100%, 0 88%, 9% 88%, 9% 75%, 18% 75%, 18% 62%, 27% 62%, 27% 50%, 36% 50%, 36% 37%,
    45% 37%, 45% 25%, 54% 25%, 54% 12%, 63% 12%, 63% 0, 100% 0, 100% 100%
  );
}

/* bordo superiore (colore = sezione precedente) */
.edget-slant::before,
.edget-arrow::before,
.edget-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: var(--edge-h, clamp(34px, 5.5vw, 88px));
  background: var(--edget-color, #fff);
  z-index: 3;
  pointer-events: none;
}

.edget-slant::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.edget-arrow::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 0, 0 100%); }
.edget-steps::before {
  clip-path: polygon(
    0 0, 100% 0, 100% 12%, 91% 12%, 91% 25%, 82% 25%, 82% 38%, 73% 38%, 73% 50%, 64% 50%, 64% 63%,
    55% 63%, 55% 75%, 46% 75%, 46% 88%, 37% 88%, 37% 100%, 0 100%
  );
}

.to-alt  { --edge-color: var(--cream-alt); }
.to-white{ --edge-color: #fff; }
.to-dark { --edge-color: var(--stone-950); }
.from-alt  { --edget-color: var(--cream-alt); }
.from-white{ --edget-color: #fff; }

/* le sezioni con separatore devono lasciare spazio */
.hero.edge-steps .hero-inner { padding-bottom: calc(72px + var(--edge-h, 60px)); }
.page-hero[class*="edge-"] { padding-bottom: calc(64px + var(--edge-h, 60px)); }
.band[class*="edge-"],
.section[class*="edget-"] { --edge-h: clamp(30px, 4.5vw, 70px); }
.section[class*="edget-"] { padding-top: calc(88px + 24px); }
.section[class*="edge-"]:not(.band) { padding-bottom: calc(88px + 24px); }
@media (min-width: 1024px) {
  .section[class*="edget-"] { padding-top: calc(128px + 24px); }
  .section[class*="edge-"]:not(.band) { padding-bottom: calc(128px + 24px); }
}

/* ---------- Banda fotografica (citazioni, pietre, CTA) ---------- */
.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--stone-950);
  padding: 120px 0;
}

.band .hero-bg::after {
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.86), rgba(20, 20, 22, 0.78));
}

.band .container { position: relative; z-index: 2; }
.band h2, .band h3 { color: #fff; }
.band .lede { color: var(--stone-300); }
.band .eyebrow { color: var(--stone-300); }
.band .eyebrow::before { background: var(--clay-light); }

.band-quote {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw + 0.6rem, 2.9rem);
  line-height: 1.18;
  font-weight: 600;
  color: #fff;
}

.band-quote::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--clay);
  margin-bottom: 26px;
}

/* ---------- Collage hero (foto sagomate) ---------- */
.hero-collage {
  position: relative;
  display: none;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 440px;
  align-self: center;
}

@media (min-width: 1024px) {
  .hero-collage { display: grid; }
}

.hero-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--stone-900);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  box-shadow: var(--shadow-lg);
}

.hero-collage figure:first-child { grid-row: span 2; }

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.hero-collage figure:hover img { transform: scale(1.06); }

.hero-collage figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 16px 8px 14px;
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}

/* ---------- Card immagine (categorie) ---------- */
.cat-grid {
  display: grid;
  gap: 22px;
}

.cat-grid > * { min-width: 0; }

@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cat-card .ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone-100);
}

.cat-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.cat-card:hover .ph img { transform: scale(1.07); }

.cat-card .ph::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: var(--clay);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.cat-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.cat-card h3 { font-size: 1.25rem; }
.cat-card p { margin-top: 10px; font-size: 0.93rem; color: var(--ink-soft); }

.cat-card .more {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clay-dark);
}

.cat-card .more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.cat-card:hover .more svg { transform: translateX(5px); }

/* ---------- Mosaico foto (Lavori) ---------- */
.masonry {
  column-count: 2;
  column-gap: 14px;
}

@media (min-width: 720px) { .masonry { column-count: 3; column-gap: 18px; } }
@media (min-width: 1100px) { .masonry { column-count: 4; } }

.masonry figure {
  position: relative;
  margin: 0 0 14px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--stone-100);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) { .masonry figure { margin-bottom: 18px; } }

.masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}

.masonry figure:hover img { transform: scale(1.05); }

.masonry .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 14px 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(20, 20, 22, 0.75), rgba(20, 20, 22, 0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.masonry figure:hover .cap,
.masonry figure:focus-within .cap { opacity: 1; transform: none; }

@media (hover: none) {
  .masonry .cap { opacity: 1; transform: none; font-size: 0.72rem; }
}

/* ---------- Pannello brand (al posto di una foto mancante) ---------- */
.media.media-brand {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--stone-900), var(--stone-950));
  border: 0;
}

.media.media-brand img {
  width: 58%;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

/* ---------- Striscia scorrevole (marquee) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--stone-950);
  color: #fff;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--stone-300);
}

.marquee-item::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--clay);
  transform: rotate(45deg);
  flex: none;
}

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

/* ---------- Anteprima con foto (sezione Infissi in home) ---------- */
.split-media {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split-media > * { min-width: 0; }

@media (min-width: 960px) {
  .split-media { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-media.flip .split-media-photos { order: -1; }
}

.split-media-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.split-media-photos figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.split-media-photos figure:nth-child(2) { margin-top: 44px; }

.split-media-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-media-photos .badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}

.split-media-photos .badge img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

/* ---------- Riquadro con emblema (Azienda) ---------- */
.brand-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.brand-panel img { width: min(60%, 320px); height: auto; }

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(27, 27, 29, 0.035) 0 2px, transparent 2px 22px);
}

.brand-panel img { position: relative; }

/* ---------- Footer con logo e bordo sagomato ---------- */
.site-footer { position: relative; padding-top: calc(72px + 30px); }
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: clamp(28px, 4vw, 56px);
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.footer-logo { display: inline-block; }
.footer-logo img { height: 52px; width: auto; }

/* ---------- Barra azioni mobile ---------- */
.m-bar { display: none; }

@media (max-width: 767px) {
  .m-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -12px rgba(27, 27, 29, 0.25);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .m-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--stone-800);
  }

  .m-bar a svg { width: 19px; height: 19px; flex: none; }
  .m-bar a + a { border-left: 1px solid var(--border); }
  .m-bar a.primary { background: var(--clay); color: #fff; }
  .float-cta { display: none; }
  body { padding-bottom: 56px; }
}

/* ---------- Barra di avanzamento scroll ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: var(--clay);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Animazioni: reveal varianti + ingresso hero ---------- */
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-zoom  { transform: scale(0.94); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible { transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--n, 0) * 80ms);
}

.reveal-stagger.is-visible > * { opacity: 1; transform: none; }

/* la classe reveal-stagger non deve nascondere il contenitore stesso */
.reveal.reveal-stagger { opacity: 1; transform: none; }

/* linea eyebrow che si allunga */
.section-head.reveal .eyebrow::before,
.topic.reveal .eyebrow::before {
  width: 0;
  transition: width 0.9s var(--ease) 0.15s;
}

.section-head.is-visible .eyebrow::before,
.topic.is-visible .eyebrow::before { width: 24px; }

/* ingresso hero */
.anim-in {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* micro-interazioni pulsanti */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px -8px rgba(212, 55, 44, 0.65);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(212, 55, 44, 0.7); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { transition: transform 0.3s var(--ease); }

/* header che si compatta */
.nav-wrap { transition: height 0.3s var(--ease); }
.site-header.is-scrolled .nav-wrap { height: 68px; }
.brand img { transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 40px; }

/* fluttuazione lieve dell'emblema nelle bande */
.emblem-wm { animation: floaty 14s ease-in-out infinite alternate; }
@keyframes floaty {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-18px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .emblem-wm, .marquee-track { animation: none !important; }
  .anim-in, .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---- ritocchi V2 ---- */
.band { padding: calc(88px + var(--edge-h, 0px)) 0; }
@media (min-width: 1024px) { .band { padding: calc(120px + var(--edge-h, 0px)) 0; } }
.band .hero-bg img { animation: none; will-change: transform; }
.band[class*="edget-"] { padding-top: calc(88px + var(--edge-h, 0px)); }

.cta-banner .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner .cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, 0.92), rgba(20, 20, 22, 0.72));
}
.cta-banner .emblem-wm { right: -3%; bottom: -30%; width: min(46%, 380px); opacity: 0.09; animation: none; }
.cta-banner > .cta-bg { z-index: 0; }

/* ---- testo su foto ---- */
.hero h1 .accent { color: var(--clay-light); }
.band .app-item { border-color: rgba(255, 255, 255, 0.18); background: rgba(20, 20, 22, 0.35); backdrop-filter: blur(2px); }
.band .app-item h4 { color: #fff; }
.band .app-item p { color: var(--stone-300); }
.band .app-item .icon { color: #fff; }
.band .hero-cta { margin-top: 44px; }

.hero-collage { height: clamp(420px, 62vh, 560px); min-height: 0; }
.hero-collage figure { min-height: 0; }
.hero-collage figure img { position: absolute; inset: 0; }

.band .hero-bg::after { background: linear-gradient(90deg, rgba(20, 20, 22, 0.90) 0%, rgba(20, 20, 22, 0.70) 55%, rgba(20, 20, 22, 0.42) 100%); }
@media (max-width: 767px) { .band .hero-bg::after { background: linear-gradient(180deg, rgba(20, 20, 22, 0.86), rgba(20, 20, 22, 0.78)); } }

/* ---- blocchi foto sagomati e pannelli brand ---- */
.photo-notch {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.photo-notch img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media.media-brand svg.big {
  position: relative;
  z-index: 1;
  width: 42%;
  height: auto;
  color: #fff;
  stroke-width: 1;
}

.media.media-brand .wm {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: 66%;
  height: auto;
  opacity: 0.1;
}

.page-hero .emblem-wm { right: -4%; bottom: -30%; width: min(50vw, 460px); }

/* nessuno scroll orizzontale dovuto alle animazioni laterali */
main { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 767px) {
  .reveal-left { transform: translateX(-18px); }
  .reveal-right { transform: translateX(18px); }
}

.split-media-photos figure.photo-notch { aspect-ratio: 4 / 3; margin-top: 0; }

/* ---------- Credito sito ---------- */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--stone-400);
  opacity: 0.9;
  transition: opacity 0.25s var(--ease);
}

.footer-credit:hover { opacity: 1; }
.footer-credit img { height: 22px; width: auto; }
