/* ============================================
   SERRAMENTI SALA MAURO & C.
   Stylesheet principale
   ============================================ */

:root {
  /* Palette */
  --navy: #0B5687;
  --navy-dark: #073e63;
  --navy-light: #1a6fa6;
  --navy-50: #e8f1f8;
  --navy-100: #d1e3f0;

  --cream: #e6f0f8;
  --cream-warm: #f0ebe0;
  --paper: #ffffff;
  --ink: #0d1721;
  --ink-soft: #2a3744;
  --muted: #6b7884;
  --line: #d9dde1;
  --line-soft: #edeff2;
  --metal: #b8bec5;

  /* Immagine segnaposto - cambia qui per aggiornare tutto il sito */
  --hero-image: url('../assets/Serramenti-Sala-Mauro.png');

  /* Immagini aggiuntive (sostituibili con foto reali del cliente) */
  --img-finestre: url('../assets/Serramenti-Sala-Mauro02.png');
  --img-porte: url('../assets/Serramenti-Sala-Mauro03.jpg');
  --img-persiane: url('../assets/Serramenti-Sala-Mauro04.jpg');
  --img-workshop: url('../assets/Serramenti-Sala-Mauro01.jpg');
  --img-detail: url('../assets/Serramenti-Sala-Mauro01.jpg');
  --img-artigianato: url('../assets/Serramenti-Sala-Mauro01.jpg');
  --img-termico: url('../assets/Serramenti-Sala-Mauro05.webp');
  --img-ingresso: url('../assets/Serramenti-Sala-Mauro06.jpg');
  --img-orientabili: url('../assets/Serramenti-Sala-Mauro07.jpg');
  --img-motorizzate: url('../assets/Serramenti-Sala-Mauro08.jpg');
  --img-parallaxh: url('../assets/Serramenti-Sala-Mauro09.jpg');
  --img-modellabili: url('../assets/Serramenti-Sala-Mauro10.jpg');
  --img-finestrep: url('../assets/Serramenti-Sala-Mauro11.jpg');
   --img-tecnologiaf: url('../assets/Serramenti-Sala-Mauro12.png');
   --img-portep: url('../assets/Serramenti-Sala-Mauro13.jpg');
   --img-portef: url('../assets/Serramenti-Sala-Mauro14.jpg');
   --img-persianeh: url('../assets/Serramenti-Sala-Mauro15.jpg');
   --img-persianef: url('../assets/Serramenti-Sala-Mauro16.jpg');
   --img-persianeavv: url('../assets/Serramenti-Sala-Mauro17.webp');

  

  


  /* Tipografia */
  --font-display: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Spaziature */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Transizioni */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* SVG safety: prevent oversized inline svg without explicit dimensions */
svg { display: inline-block; vertical-align: middle; }
.btn svg, .service-link svg, .header-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Tipografia display */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.h-display {
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h-display em {
  font-style: normal;
  color: var(--navy);
  font-weight: 700;
}

.h-section {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.h-section em {
  font-style: normal;
  color: var(--navy);
}

.h-card {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--navy);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(11, 86, 135, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-weight: 600;
}

.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

@media (min-width: 600px) {
  .brand-text { display: flex; }
}

/* Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a.active { color: var(--navy); }

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

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.header-cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 6px;
  margin: -6px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 980px) {
  .hamburger { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 380px);
  height: 100vh;
  background: var(--paper);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s var(--ease);
  box-shadow: -20px 0 50px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s var(--ease);
}

.mobile-nav a:hover, .mobile-nav a.active { color: var(--navy); }

.mobile-nav .mobile-cta {
  margin-top: auto;
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 999px;
  border: none;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 23, 33, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11, 86, 135, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-arrow,
.btn-arrow svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow,
.btn:hover svg.btn-arrow,
.service-link:hover svg { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: clamp(3rem, 5vw, 6rem) 0 clamp(4rem, 5vw, 7rem);
  background: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-text { position: relative; z-index: 2; }

.hero h1 {
  margin: 1.25rem 0 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--navy);
  font-weight: 700;
}

.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-meta-item strong {
  font-family: var(--font-display);
  display: block;
  font-size: 2rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1;
}

.hero-meta-item span {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4;
  max-height: 540px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-color: var(--navy-100);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  filter: saturate(0.92);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 86, 135, 0.18));
  border-radius: 4px;
}

.hero-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: white;
  padding: 1.4rem 1.6rem;
  max-width: 280px;
  box-shadow: 0 30px 60px -20px rgba(11, 86, 135, 0.3);
  border-left: 3px solid var(--navy);
}

@media (min-width: 600px) {
  .hero-card {
    bottom: -2rem;
    left: -2rem;
    padding: 1.75rem 2rem;
    max-width: 320px;
  }
}

.hero-card span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}

.hero-card strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 0.5rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Vertical text decorative */
.hero-vertical {
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--metal);
  white-space: nowrap;
  display: none;
}

@media (min-width: 1200px) {
  .hero-vertical { display: block; }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: clamp(4rem, 5vw, 7rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.section-head .eyebrow { margin-bottom: 1.25rem; }

.section-head h2 { margin-bottom: 1.25rem; }

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services {
  background: var(--paper);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

/* Card servizio con foto + hover deciso */
.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  color: white;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  isolation: isolate;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(11, 86, 135, 0.45);
}

.service-card-media {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  z-index: 0;
}

.service-card:hover .service-card-media {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 23, 33, 0.15) 0%,
    rgba(13, 23, 33, 0.45) 50%,
    rgba(11, 86, 135, 0.92) 100%);
  z-index: 1;
  transition: background 0.5s var(--ease);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(180deg,
    rgba(11, 86, 135, 0.4) 0%,
    rgba(11, 86, 135, 0.75) 50%,
    rgba(7, 62, 99, 0.95) 100%);
}

.service-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}

.service-card-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.service-card-icon {
  margin-top: auto;
  margin-bottom: 1.5rem;
  width: 52px;
  height: 52px;
  color: white;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-card-icon {
  transform: translateY(-4px);
}

.service-card h3 {
  color: white;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.service-card-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin-bottom 0.45s var(--ease);
}

.service-card:hover .service-card-desc {
  max-height: 200px;
  opacity: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover .service-card-link {
  gap: 1rem;
  border-color: rgba(255,255,255,0.6);
}

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

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* Su touch device, mostra sempre la descrizione */
@media (hover: none) {
  .service-card-desc {
    max-height: 200px;
    opacity: 1;
  }
}

/* ============================================
   MOSAIC GALLERY
   ============================================ */

.mosaic {
  background: var(--paper);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 220px);
  gap: 1rem;
}

@media (min-width: 720px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 280px);
  }
}

@media (min-width: 1024px) {
  .mosaic-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 1.25rem;
  }

  .mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .mosaic-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .mosaic-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.mosaic-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 23, 33, 0.75) 100%);
  z-index: 1;
  transition: background 0.4s var(--ease);
}

.mosaic-item:hover::before {
  background: linear-gradient(180deg, rgba(11, 86, 135, 0.15) 0%, rgba(11, 86, 135, 0.85) 100%);
}

.mosaic-item-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}

.mosaic-item:hover .mosaic-item-bg {
  transform: scale(1.08);
}

.mosaic-label {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  color: white;
}

.mosaic-label span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}

.mosaic-label strong {
  display: block;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================
   WHY-US (icone affiancate)
   ============================================ */

.why-us {
  background: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.why-item {
  background: var(--paper);
  padding: 2rem 1.75rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}

.why-item:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: 0 20px 40px -20px rgba(11, 86, 135, 0.25);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--navy-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
  transition: all 0.3s var(--ease);
}

.why-item:hover .why-icon {
  background: var(--navy);
  color: white;
  transform: rotate(-6deg);
}

.why-icon svg { width: 26px; height: 26px; }

.why-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.why-item p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ============================================
   PROCESS (step by step)
   ============================================ */

.process {
  background: var(--paper);
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 720px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

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

.process-step {
  position: relative;
  padding-top: 1.5rem;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--navy);
}

.process-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--navy-50);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

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

/* ============================================
   SHOWCASE (banner full-width con foto)
   ============================================ */

.showcase {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-image: var(--img-parallaxh);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.showcase-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(11, 86, 135, 0.92) 0%,
    rgba(11, 86, 135, 0.78) 45%,
    rgba(7, 62, 99, 0.55) 100%);
}

.showcase-inner {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 640px;
}

.showcase .eyebrow {
  color: rgba(255,255,255,0.85);
}

.showcase .eyebrow::before {
  background: rgba(255,255,255,0.85);
}

.showcase h2 {
  color: white;
  margin: 1.25rem 0 1.25rem;
}

.showcase p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.showcase .btn-primary {
  background: white;
  color: var(--navy);
}

.showcase .btn-primary:hover {
  background: var(--cream);
  color: var(--navy-dark);
}

/* ============================================
   BADGES / certificazioni
   ============================================ */

.badges {
  background: var(--cream);
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
  text-align: center;
}

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

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.badge-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.badge-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.badge-item span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.testimonial-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--navy-50);
  line-height: 0.5;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.testimonial blockquote {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-author strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  color: #e6a817;
}

.testimonial-stars svg { width: 20px; height: 20px; }

/* ============================================
   FEATURE / SPLIT
   ============================================ */

.feature {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

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



@media (max-width: 899px) {
  
}

.feature-image {
  aspect-ratio: 4 / 5;
  background-color: var(--navy-100);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
}

/* Immagine per la sezione Materiali */
.feature-image--materiali {
  background-image: url('../assets/Serramenti-Sala-Mauro01.jpg');
}

/* Immagine per la sezione Artigianato */
.feature-image--artigianato {
  background-image: url('../assets/Serramenti-Sala-Mauro10.jpg');
}

.feature-image::before {
  content: '';
  position: absolute;
  inset: -1rem;
  
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
}

.feature h2 {
  margin: 1.25rem 0 1.5rem;
}

.feature-text > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.875rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats {
  background: var(--navy);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.stat-num em {
  font-style: normal;
  color: rgba(255,255,255,0.75);
  font-size: 0.65em;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ============================================
   CTA BLOCK
   ============================================ */

.cta-block {
  background: var(--navy);
  color: white;
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 86, 135, 0.4), transparent 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }
}

.cta-block h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-block p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 540px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cta-actions { align-items: flex-end; }
}

.cta-actions .btn-primary {
  background: white;
  color: var(--navy);
}

.cta-actions .btn-primary:hover {
  background: var(--cream);
  color: var(--navy-dark);
}

.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .cta-phone { align-items: flex-end; }
}

.cta-phone span {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.cta-phone strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */

.page-hero {
  background: #ffffff;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.3fr 1fr; }
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--ink); }

.page-hero h1 { margin-bottom: 1.5rem; }

.page-hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.65;
}

.page-hero-visual {
  aspect-ratio: 5 / 4;
  background-color: var(--navy-100);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--cream);
}

.content-block + .content-block { padding-top: 0; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .content-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
}

.content-grid h2 { margin-bottom: 1.5rem; }

.content-grid p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.content-aside {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border-left: 3px solid var(--navy);
}

.content-aside .eyebrow { margin-bottom: 1rem; }

.content-aside h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.content-aside p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ============================================
   PRODUCTS / FEATURES STRIP
   ============================================ */

.strip {
  background: var(--navy-50);
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.strip-card {
  background: white;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  transition: all 0.3s var(--ease);
}

.strip-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
}

.strip-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

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

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

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

.contact-info-card {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
}

.contact-info-card h2 { margin-bottom: 0.75rem; }

.contact-info-card > p {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-content strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.info-content a, .info-content span, .info-content p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 400;
}

.info-content a:hover { color: var(--navy); }

/* Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  position: relative;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

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

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: all 0.25s var(--ease);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-50);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.form-check a { color: var(--navy); text-decoration: underline; }

.form-submit {
  margin-top: 0.5rem;
}

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #e8f5ec;
  color: #1f6332;
  border: 1px solid #b8dcc1;
}

.form-feedback.error {
  display: block;
  background: #fbeaea;
  color: #8a2929;
  border: 1px solid #e6b8b8;
}

/* Map */
.map-wrap {
  margin-top: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--cream-warm);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: white; }

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.footer-col strong {
  color: white;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a:hover { color: white; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg { width: 28px; height: 28px; color: white; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}

.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }

/* In-view animations (progressive enhancement: hidden only when JS attaches `js-anim`) */
.js-anim .in-view {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-anim .in-view.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js-anim .in-view {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================
   IMMAGINI DINAMICHE PER PAGINA (tramite data-page)
   Usa le variabili dichiarate in :root
   ============================================ */

/* --- PAGINA FINESTRE --- */
body[data-page="finestre"] .page-hero-visual {
  background-image: var(--img-finestrep); /* Usa la foto delle finestre */
}
body[data-page="finestre"] .feature-image {
  background-image: var(--img-tecnologiaf); /* Usa la foto dettaglio/workshop per la feature */
}

/* --- PAGINA PORTE --- */
body[data-page="porte"] .page-hero-visual {
  background-image: var(--img-portep); /* Usa la foto delle porte */
}
body[data-page="porte"] .feature-image {
  background-image: var(--img-portef); /* Usa la foto del laboratorio per la feature */
}

/* --- PAGINA PERSIANE E TAPPARELLE --- */
body[data-page="persiane-tapparelle"] .page-hero-visual {
  background-image: var(--img-persianeh); 
}

/* Immagine per la Feature Persiane */
.feature-image--persiane {
  background-image: var(--img-persianef);
}

/* Immagine per la Feature Tapparelle */
.feature-image--tapparelle {
  background-image: var(--img-persianeavv);
}

/* --- PAGINA CONTATTI (Opzionale) --- */
body[data-page="contatti"] .page-hero-visual {
  background-image: var(--img-modellabili); /* Mostra il laboratorio/negozio */
}

/* Su mobile (singola colonna), nelle sezioni reverse, 
   il testo deve apparire sopra l'immagine */
@media (max-width: 899px) {
  .feature.reverse .feature-grid > :first-child {
    order: 2; /* Sposta l'immagine in basso */
  }
  .feature.reverse .feature-grid > :last-child {
    order: 1; /* Porta il testo in alto */
  }
}
