/* ==========================================================================
   Vetreria Bentivoglio — Design tokens & base styles
   ========================================================================== */

:root {
  --color-primary: #0d4782;
  --color-primary-dark: #093459;
  --color-accent: #00a2e1;
  --color-dark: #292929;
  --color-dark-soft: #1d2126;
  --color-white: #ffffff;
  --color-ink: #292929;
  --color-muted: rgba(255, 255, 255, 0.7);
  --color-muted-dark: rgba(0, 0, 0, 0.6);
  --color-border: rgba(0, 0, 0, 0.08);

  --font-heading: "Archivo", sans-serif;
  --font-body: "Archivo", sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-lg: 20px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 7.875rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 2.2vw, 2.625rem); }
.h2--maestria { font-size: clamp(2.6rem, 4.2vw, 4.5rem); font-weight: 800; }
h3 { font-size: clamp(1.8rem, 2.2vw, 2.625rem); }

p { margin: 0 0 var(--space-sm); }

strong, b { font-weight: 700; }

a {
  color: inherit;
  text-decoration: none;
}
a.underline { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

section.on-dark .eyebrow,
.on-dark .eyebrow { color: var(--color-accent); }

.section {
  padding: var(--space-xl) 0;
}

.section--tight { padding: var(--space-lg) 0; }

.on-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.on-blue {
  background: var(--color-primary);
  color: var(--color-white);
}

.text-muted { color: var(--color-muted-dark); }
.on-dark .text-muted, .on-blue .text-muted { color: var(--color-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--light {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: rgba(0, 0, 0, 0.06);
}
.btn--light:hover { background: #eef3f8; }

.btn--dark {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn--dark:hover { background: #000; }

.btn--blue {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--blue:hover { background: var(--color-primary-dark); }

.btn--outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}
.on-dark .link-arrow, .on-blue .link-arrow { color: var(--color-white); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.photo .ph-caption img.arrow-icon {
  position: static;
  inset: auto;
  object-fit: initial;
  width: 14px;
  height: auto;
}
.arrow-icon {
  display: inline-block;
  width: 14px;
  height: auto;
  vertical-align: middle;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
a:hover .arrow-icon { transform: translateX(4px); }

.arrow-icon--left {
  margin-left: 0;
  margin-right: 2px;
}
a:hover .arrow-icon--left { transform: translateX(-4px); }

.link-arrow--btn {
  padding: 12px 22px;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}
.link-arrow--btn:hover { opacity: 0.7; }

.icon-circle {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle-img { width: 51px; height: 51px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.25);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block of the fixed mobile menu panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.site-header.is-scrolled::before {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.main-nav ul {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.main-nav a.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
  color: #fff;
  transition: color 0.25s ease;
}
.is-scrolled .main-nav a.nav-link { color: var(--color-ink); }
.main-nav a.nav-link.is-active,
.main-nav a.nav-link:hover {
  opacity: 0.75;
}
.main-nav a.nav-link.is-active {
  font-weight: 700;
  opacity: 1;
}
.is-scrolled .main-nav a.nav-link.is-active,
.is-scrolled .main-nav a.nav-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.nav-item--dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(6px);
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.dropdown a:hover { background: #f0f4f8; color: var(--color-primary); }

.header-cta {
  flex-shrink: 0;
  gap: 14px;
  padding: 10px 30px;
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
  background: rgba(255,255,255,0.35);
  border: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 700;
}
.header-cta-icon { width: 25px; height: auto; display: block; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.25s ease;
}
.is-scrolled .nav-toggle span { background: var(--color-ink); }
.nav-toggle.is-open span { background: var(--color-ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .hero-bg.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 16, 24, 0.85) 0%, rgba(10, 16, 24, 0.55) 45%, rgba(10, 16, 24, 0.35) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.hero h1 { max-width: none; }
.hero:not(.hero--page) h1,
.hero:not(.hero--page) .typewriter-visible {
  line-height: 0.92;
  padding: 0.1em 0 0.22em;
  background: linear-gradient(120deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.3) 45%, rgba(255,255,255,0.85) 70%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(255,255,255,0.2);
}
.hero:not(.hero--page) h1 { margin-bottom: 56px; }
.hero .lead {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero .lead.is-in {
  opacity: 1;
  transform: none;
}
.hero .hero-cta {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero .hero-cta.is-in {
  opacity: 1;
  transform: none;
}
.typewriter-h1 { position: relative; }
.typewriter-ghost { visibility: hidden; }
.typewriter-visible { position: absolute; inset: 0; }
.hero .lead {
  max-width: 680px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.1vw, 1.3125rem);
}
.hero-cta {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-cta .link-arrow { color: var(--color-white); }

/* small hero (inner pages) */
.hero--page {
  min-height: 58vh;
}

/* ==========================================================================
   Image placeholders (stand-ins for real photography)
   ========================================================================== */

.ph {
  position: relative;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #163853 0%, #0d4782 55%, #2c7099 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.08) 0px,
    rgba(255, 255, 255, 0.08) 2px,
    transparent 2px,
    transparent 34px
  );
  mix-blend-mode: overlay;
}
.ph::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 60%);
}
.ph-caption {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  width: 100%;
}
.ph--hero { min-height: 100%; border-radius: 0; }
.ph--hero::after { display: none; }
.ph--tall { min-height: 340px; }
.ph--square { aspect-ratio: 1 / 1; min-height: 0; }
.ph--wide { aspect-ratio: 16 / 10; min-height: 0; }
.ph--portrait { aspect-ratio: 3 / 4; min-height: 0; }
.gallery-grid--portrait .ph-caption { font-size: 1.3rem; color: #fff; }

/* Real photos: reuse the same sizing modifiers (--hero/--tall/--square/--wide)
   but render an actual <img> instead of the gradient placeholder. */
.photo {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.ph--hero { border-radius: 0; }
.gallery-grid--rounded .photo { border-radius: 12px; }

/* ==========================================================================
   Story / feature blocks
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.split-media { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Full image with a card anchored to its bottom-right corner */
.feature-image-card { position: relative; }
.feature-image-card .photo { width: 100%; aspect-ratio: 1207 / 715; border-radius: 0; }
.feature-image-card .feature-card-box {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 41.5%;
  height: 52.2%;
  background: var(--color-white);
  color: var(--color-ink);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card-box .eyebrow { color: var(--color-accent); }
.feature-card-box h2 { color: var(--color-ink); }
.feature-card-box .text-muted { color: var(--color-muted-dark); }
.feature-card-box .link-arrow { color: var(--color-primary); }
@media (max-width: 760px) {
  .feature-image-card .feature-card-box { position: static; width: 100%; height: auto; }
}

/* Staggered 3-photo collage (La vetreria — storia) */
.photo-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 570 / 424;
}
.photo-collage .photo { position: absolute; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.photo-collage .pc-1 { left: 0%; top: 7.3%; width: 43.9%; height: 71.2%; z-index: 1; }
.photo-collage .pc-2 { left: 48.6%; top: 0%; width: 51.4%; height: 85.6%; z-index: 1; }
.photo-collage .pc-3 { left: 24%; top: 31.8%; width: 41.4%; height: 68.2%; z-index: 2; }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.on-blue .cols-3 {
  gap: var(--space-xl);
}
.on-blue .cols-3 > div {
  border-top: 1px solid #93abc5;
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
}
.on-blue .cols-3 > div .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.on-blue .cols-3 h4 {
  color: #00a2e1;
}
.cols-3 h4 {
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
}
.cols-3 .link-arrow { margin-top: 10px; }

.stat-badge {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Product category block: image grid + caption row */
.category-block { margin-bottom: var(--space-lg); }
.category-block .gallery-grid--3 { margin-bottom: var(--space-sm); }
.gallery-grid--3-teaser .ph-caption { color: #fff; font-size: 1.3rem; }
.category-caption {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 1.15rem;
  flex-wrap: wrap;
}
.category-caption strong { font-family: var(--font-heading); font-size: 1.4rem; }
.category-caption span { color: var(--color-muted-dark); }
.on-dark .category-caption span { color: var(--color-muted); }

/* Feature list (Perche' affidarsi / metodo) */
.feature-list { display: flex; flex-direction: column; gap: var(--space-md); }
.feature-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.feature-list.on-light li { border-bottom: 1px solid var(--color-border); }
.feature-list h4 { margin: 0; font-size: 1.375rem; font-weight: 500; }
.feature-list p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }
.feature-list.on-light p { color: var(--color-muted-dark); }

.steps-list { counter-reset: step; display: flex; flex-direction: column; gap: var(--space-md); }
.steps-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.steps-list .step-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.5vw, 3.875rem);
  font-weight: 500;
  color: rgba(255,255,255,0.62);
}
.steps-list h4 { margin: 0 0 6px; font-size: 1.375rem; font-weight: 500; }
.steps-list p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }

/* Service list (checklist) */
.check-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 24px;
  margin: var(--space-md) 0;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Cards (per privati / per aziende) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.card {
  background: rgba(255,255,255,0.62);
  border: none;
  border-radius: 12px;
  padding: var(--space-md);
  text-align: left;
}
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card .icon-circle-img { margin-top: auto; }
.card .card-link-icon { margin-top: auto; display: inline-flex; width: 51px; height: 51px; transition: transform 0.2s ease; }
.card .card-link-icon:hover { transform: scale(1.08); }
.card h4 { margin-bottom: 8px; font-size: 1.6875rem; font-weight: 600; color: var(--color-primary); }
.card p { color: var(--color-ink); font-size: 0.95rem; margin-bottom: var(--space-sm); }

/* Case history */
.case-history {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(41,41,41,0.35);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: 0 20px 40px rgba(13,71,130,0.08);
}
.case-history .case-text { flex: 1; font-size: 1.3rem; font-weight: 500; font-style: italic; line-height: 1.25; color: var(--color-primary); margin: 0; padding: 0 var(--space-lg); text-align: left; }
.case-history .case-text::before { content: "\201C"; }
.case-history .case-text::after { content: "\201D"; }
.case-history .case-label { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; color: var(--color-ink); white-space: nowrap; }

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-accent) 160%);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  text-align: left;
}
.cta-banner-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  margin: 0;
  max-width: 640px;
}
.cta-banner-btn.btn--accent {
  flex-shrink: 0;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1rem;
  padding: 18px 38px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
}
.cta-banner-btn.btn--accent:hover { background: var(--color-accent); color: #fff; }
.cta-banner-btn .arrow-icon { width: 17px; }
@media (max-width: 760px) {
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-text { max-width: none; }
}

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--color-border); margin-top: var(--space-md); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-ink);
}
.faq-question .faq-arrow { width: 16px; height: auto; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 12px; color: var(--color-muted-dark); font-size: 0.95rem; }

/* Contact form (mini) */
.info-card {
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  max-width: 340px;
}
.info-card h4 { margin-bottom: 4px; }
.info-card form { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-sm); }
.info-card input {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.info-card .btn { justify-content: center; margin-top: 4px; }
.info-card .fine-print { font-size: 0.75rem; color: var(--color-muted-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary);
  color: #fff;
}
.footer-cta {
  padding: var(--space-xl) 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-cta h2 {
  margin: 0;
  max-width: 600px;
  opacity: 0.9;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.9vw, 2.25rem);
}
.footer-columns {
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.footer-columns--4 { grid-template-columns: repeat(4, 1fr); }
.footer-contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
}
.footer-contact-cta .link-arrow { color: #fff; }
.footer-columns h5 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 10px;
}
.footer-columns p, .footer-columns a { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin: 0 0 4px;}
.footer-columns a.underline { text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-right { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .split, .intro-grid { grid-template-columns: 1fr; }
  .cols-3, .card-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 1fr; }
  .feature-list li, .steps-list li { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px var(--space-md) var(--space-md);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  }
  /* the off-canvas panel is always light, regardless of header scroll state */
  .main-nav a.nav-link { color: var(--color-ink); }
  .main-nav a.nav-link.is-active,
  .main-nav a.nav-link:hover { color: var(--color-primary); opacity: 1; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-sm); width: 100%; }
  .nav-item--dropdown .dropdown,
  .nav-item--dropdown:hover .dropdown,
  .nav-item--dropdown:focus-within .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    display: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav-item--dropdown.is-open .dropdown { display: block; }
  .dropdown::before { display: none; }
  .header-cta { display: none; }
  .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-md);
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(13, 71, 130, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.05rem;
  }
  .nav-cta-mobile .header-cta-icon { width: 22px; }
  .case-history { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .info-card { max-width: 100%; }
}

/* Scroll-in reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Scroll-linked blur: JS sets filter/transform inline from scroll position.
   The default below is the fully-blurred state (also the pre-JS state). */
[data-blur-focus] img {
  filter: blur(28px);
  transform: scale(1.08);
  will-change: filter, transform;
}

/* Hero image: slight zoom-in on page load */
.hero-bg img {
  animation: hero-zoom-in 3.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes hero-zoom-in {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero .hero-cta { transition: opacity 0.3s ease; }
}

/* Thin line under a section title */
.title-rule {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #93abc5;
}

/* Extra dark shade at the top of a hero image, for menu legibility */
.hero .hero-bg--top-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.8) 0%, rgba(10, 16, 24, 0.5) 30%, rgba(10, 16, 24, 0) 65%);
}

/* Su misura gallery: 3 columns of vertical images (3 + 3) */
@media (min-width: 961px) {
  .gallery-grid--rounded { grid-template-columns: repeat(3, 1fr); }
}

/* Su misura "Il metodo": heading | steps on wide screens; stacked on small ones */
@media (min-width: 961px) {
  .split--method { grid-template-columns: 0.75fr 1fr; align-items: start; }
}

/* Su misura "Oltre le dimensioni standard": more room for text, smaller photo */
@media (min-width: 961px) {
  .split--misura { grid-template-columns: 1.6fr 1fr; }
}

/* Used for the honeypot field in the contact form */
.form__alt {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}