/* =========================================================================
   MobilGiò — Sistema di design (rinnovo grafico)
   Palette derivata dal sito storico, ottimizzata per contrasto WCAG 2.1 AA.
   ========================================================================= */

:root {
  /* --- Colori di brand (mantenuti dal sito esistente) --- */
  --ink: #2d2821;          /* testo principale */
  --ink-soft: #595046;     /* testo secondario */
  --taupe: #9c8b7a;        /* neutro caldo, bordi, icone */
  --taupe-light: #e4dcd2;  /* bordi chiari, separatori */

  --primary: #7d5a82;        /* viola primario (da lavanda storica #b78cb9): bottoni, link, stati attivi — contrasto 5.74:1 su bianco (AA) */
  --primary-dark: #6b4a70;   /* viola scuro per hover/stati piu marcati — contrasto 7.40:1 su bianco (AA) */
  --primary-light: #b78cb9;  /* viola chiaro storico, per decorazioni ed elementi su sfondo scuro — contrasto 5.19:1 su ink (AA) */
  --primary-pale: #e5daeb;   /* viola tenue storico (sezione .bg1 del sito originale), per sfondi di sezione chiari */

  --accent: #8b6c42;         /* oro/miele scurito, accento secondario per icone e dettagli — contrasto 4.86:1 su bianco (AA) */
  --accent-light: #ecca9b;   /* oro chiaro per badge e piccoli tocchi decorativi */

  --bg: #ffffff;
  --bg-alt: #f7f4f0;       /* sfondo sezioni alternate, tono caldo coerente con la palette */
  --bg-dark: #2d2821;

  --white: #ffffff;
  --success: #4c7a51;
  --error: #b3413c;

  /* --- Tipografia --- */
  --font-display: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  /* --- Spaziature (scala 4px) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(45, 40, 33, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 40, 33, 0.12);
  --shadow-lg: 0 20px 48px rgba(45, 40, 33, 0.18);

  --container-w: 1200px;
  --header-h: 84px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 var(--sp-4); color: var(--ink); }
p { margin: 0 0 var(--sp-4); color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }

/* --- Focus visibile per accessibilità --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* --- Tipografia scala --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary);
}
h1, .h1 { font-size: clamp(2rem, 4vw, var(--fs-3xl)); }
h2, .h2 { font-size: clamp(1.5rem, 3vw, var(--fs-2xl)); }
h3, .h3 { font-size: var(--fs-xl); }
.lede { font-size: var(--fs-md); color: var(--ink-soft); max-width: 60ch; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--taupe-light);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.logo img { height: 40px; width: auto; }

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: var(--sp-6); align-items: center; }
.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  padding: var(--sp-2) 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: var(--sp-4); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; transition: transform 0.2s ease, top 0.2s ease; }
.nav-toggle span::after { position: absolute; top: 6px; transition: transform 0.2s ease, top 0.2s ease; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================================
   BOTTONI
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 0.6em 1.2em; font-size: var(--fs-xs); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,40,33,0.55) 0%, rgba(45,40,33,0.75) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: var(--sp-16); }
.hero-content { max-width: 680px; }
.hero-content .eyebrow { color: var(--primary-light); }
.hero-content .eyebrow::before { background: var(--primary-light); }
.hero-content h1 { color: var(--white); }
.hero-content p { color: rgba(255,255,255,0.88); font-size: var(--fs-md); max-width: 52ch; }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }

.hero-dots { position: absolute; bottom: var(--sp-6); left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: var(--sp-2); }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--white); background: transparent; padding: 0;
}
.hero-dots button.is-active { background: var(--primary-light); border-color: var(--primary-light); }

/* =========================================================================
   SEZIONI GENERALI
   ========================================================================= */
.section { padding-block: var(--sp-12); }
.section-alt { background: var(--bg-alt); }
.section-plum { background: var(--primary-pale); color: var(--ink); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-head { max-width: 640px; margin-bottom: var(--sp-10); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-foot { margin-top: var(--sp-10); text-align: center; }

/* --- Feature grid (punti di forza) --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.feature-card {
  background: var(--white);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card img { height: 200px; object-fit: cover; width: 100%; }
.feature-card-body { padding: var(--sp-5); }
.feature-card-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature-card-body p { margin: 0; font-size: var(--fs-sm); }

/* --- Stat strip --- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--primary-light); display: block; }
.stat-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }

/* --- Product grid (novità) --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.08); }
.product-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(45,40,33,0.85));
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* --- Testimonianze --- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  border: 1px solid var(--taupe-light);
}
.testimonial-quote { font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); margin-bottom: var(--sp-5); }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-light); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial-name { font-weight: 700; font-size: var(--fs-sm); }
.testimonial-role { font-size: var(--fs-xs); color: var(--ink-soft); }

/* --- Badge riprova sociale --- */
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; justify-content: center; opacity: 0.85; }
.trust-badge { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.trust-badge svg { width: 22px; height: 22px; color: var(--accent); }

/* --- FAQ / Accordion --- */
.accordion-item { border-bottom: 1px solid var(--taupe-light); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  background: none; border: none;
  text-align: left;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700;
  color: var(--ink);
}
.accordion-trigger .icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.accordion-trigger .icon::before, .accordion-trigger .icon::after {
  content: ""; position: absolute; background: var(--primary);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion-trigger .icon::before { width: 14px; height: 2px; }
.accordion-trigger .icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.accordion-item.is-open .accordion-trigger .icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 300px; }
.accordion-panel-inner { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-soft); max-width: 65ch; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #453b30 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-2); }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-band-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding-top: var(--sp-12); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 34px; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); }
.footer-brand p { font-size: var(--fs-sm); max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  padding-block: var(--sp-5);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* =========================================================================
   UTILS
   ========================================================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: var(--white); flex-direction: column; padding: var(--sp-6) var(--sp-5); transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 400; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a { display: block; padding: var(--sp-4) 0; font-size: var(--fs-md); border-bottom: 1px solid var(--taupe-light); }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }
  .features { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-8); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero { min-height: 560px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .section { padding-block: var(--sp-10); }
  .hero-actions .btn { width: 100%; }
}

/* =========================================================================
   PAGE BANNER (pagine interne)
   ========================================================================= */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,40,33,0.45) 0%, rgba(45,40,33,0.85) 100%);
}
.page-banner .container { position: relative; z-index: 2; padding-block: var(--sp-8) var(--sp-6); }
.page-banner h1 { color: var(--white); margin-bottom: var(--sp-2); }
.breadcrumb { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-xs); color: rgba(255,255,255,0.75); margin-bottom: var(--sp-4); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .current { color: var(--primary-light); font-weight: 600; }

/* =========================================================================
   CHI SIAMO — layout testo/immagine
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split.reverse .split-media { order: 2; }
.value-list { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.value-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.value-item .num {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-light); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
}
.value-item h4 { margin-bottom: var(--sp-1); font-size: var(--fs-md); }
.value-item p { margin: 0; font-size: var(--fs-sm); }

.timeline { border-left: 2px solid var(--taupe-light); padding-left: var(--sp-6); display: grid; gap: var(--sp-8); margin-top: var(--sp-6); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year { font-family: var(--font-display); font-weight: 700; color: var(--accent); margin-bottom: var(--sp-1); }

/* =========================================================================
   CATALOGHI
   ========================================================================= */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.catalog-card {
  background: var(--white);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.catalog-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-cover::after {
  content: "PDF";
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: var(--ink); color: var(--white);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  padding: 0.25em 0.6em; border-radius: var(--radius-sm);
}
.catalog-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.catalog-body h3 { font-size: var(--fs-md); margin: 0; }
.catalog-body p { margin: 0; font-size: var(--fs-xs); flex: 1; }
.catalog-body .btn { align-self: flex-start; }

/* =========================================================================
   REALIZZAZIONI — filtro + gallery
   ========================================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.filter-btn {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--taupe-light);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(45,40,33,0.85));
  color: var(--white); font-size: var(--fs-xs); font-weight: 600;
}
.gallery-item.is-hidden { display: none; }

/* --- Lightbox semplice --- */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(45,40,33,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(900px, 100%); max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.3);
  font-size: var(--fs-lg); display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--white); color: var(--ink); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); max-width: 100%; }
.lightbox-figure img { max-width: min(1024px, 100%); max-height: 72vh; width: auto; height: auto; background: var(--white); transition: opacity 0.2s ease; }
.lightbox.is-loading .lightbox-figure img { opacity: 0.35; }
.lightbox figcaption { color: var(--white); text-align: center; display: flex; flex-direction: column; gap: 4px; max-width: min(1024px, 100%); padding-inline: var(--sp-3); }
.lightbox-caption { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.lightbox-caption:empty { display: none; }
.lightbox-count { font-size: var(--fs-sm); opacity: 0.75; }
.lightbox-nav {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.3);
  font-size: 2rem; line-height: 1; padding: 0 0 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-nav:hover { background: var(--white); color: var(--ink); }
.lightbox-nav[hidden] { display: none; }
.lightbox { gap: var(--sp-4); }
.lightbox-close { cursor: pointer; z-index: 2; }

/* Pulsante che apre lo zoom, sopra la foto della galleria */
.gallery-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-zoom::after {
  content: ""; position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(45,40,33,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-zoom::after, .gallery-zoom:focus-visible::after { opacity: 1; }
.gallery-zoom:focus-visible { outline: 3px solid var(--primary-light); outline-offset: -3px; }
.gallery-item-label { pointer-events: none; }

@media (max-width: 640px) {
  .lightbox { padding: var(--sp-3); gap: var(--sp-2); }
  .lightbox-nav { position: absolute; bottom: var(--sp-5); width: 44px; height: 44px; }
  .lightbox-prev { left: var(--sp-4); }
  .lightbox-next { right: var(--sp-4); }
  .lightbox-figure img { max-height: 62vh; }
  .lightbox figcaption { padding-bottom: 56px; }
}

/* =========================================================================
   CONTATTI
   ========================================================================= */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-10); align-items: start; }
.contact-info-card {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: var(--sp-4); align-items: flex-start; padding-block: var(--sp-4); border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(236,202,155,0.15); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-row a, .contact-row span.value { color: rgba(255,255,255,0.85); font-size: var(--fs-sm); }
.contact-row a:hover { color: var(--primary-light); }
.contact-row h4 { color: var(--white); font-size: var(--fs-sm); margin-bottom: var(--sp-1); text-transform: uppercase; letter-spacing: 0.04em; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--sp-6); box-shadow: var(--shadow-sm); border: 1px solid var(--taupe-light); }
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; }

.form-card { background: var(--white); border: 1px solid var(--taupe-light); border-radius: var(--radius-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink);
  padding: 0.85em 1em; border: 1.5px solid var(--taupe-light); border-radius: var(--radius-sm);
  background: var(--bg-alt); transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: var(--sp-1); }
.form-consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-soft); }
.form-consent input { margin-top: 3px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: var(--sp-2); }

/* =========================================================================
   AREA RISERVATA
   ========================================================================= */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  padding-block: var(--sp-12);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('assets/images/hero-3.jpg');
  background-size: cover; background-position: center;
  opacity: 0.14;
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  text-align: center;
}
.auth-card .eyebrow { justify-content: center; }
.auth-card .eyebrow::before { display: none; }
.auth-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-light); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}
.auth-card form { display: grid; gap: var(--sp-5); text-align: left; margin-top: var(--sp-6); }
.auth-card .btn { width: 100%; }
.auth-footer { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--ink-soft); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* =========================================================================
   RESPONSIVE — pagine interne
   ========================================================================= */
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split .split-media { order: -1; }
  .page-banner { min-height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
