/* ==========================================================================
   ALLEN GROUP SRL — Landing Page
   Stack: HTML + CSS vanilla, mobile-first
   Palette: viola scuro #4A1D5F (primario) + oro #C9A55B (CTA)
   ========================================================================== */

/* ----- VARIABILI ----- */
:root {
  /* Brand */
  --primary: #4A1D5F;
  --primary-dark: #3A1449;
  --primary-light: #6B3D80;
  --primary-50: rgba(74, 29, 95, 0.06);
  --primary-100: rgba(74, 29, 95, 0.12);

  --gold: #C9A55B;
  --gold-dark: #B08D3F;
  --gold-light: #E0C384;

  /* Neutrals */
  --dark: #1A1A1A;
  --gray-900: #2E2E2E;
  --gray-800: #3F3F3F;
  --gray-700: #5A5A5A;
  --gray-500: #8A8A8A;
  --gray-300: #D1D1D1;
  --gray-200: #E8E5E0;
  --gray-100: #F4F2EE;
  --cream: #FAF7F2;
  --white: #FFFFFF;

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spaziature */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Container */
  --max-w: 1200px;

  /* Border / Shadow */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);

  /* Transitions */
  --t: 280ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
strong { font-weight: 600; }

/* ----- TIPOGRAFIA ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

p { color: var(--gray-800); }

em { font-style: italic; color: var(--gold); }

/* ----- LAYOUT ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.section {
  padding: var(--space-xl) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
}
@media (min-width: 1024px) {
  .section { padding: var(--space-3xl) 0; }
}

.section--alt { background: var(--cream); }

.section-header {
  margin-bottom: var(--space-lg);
}
.section-header--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: var(--space-md);
}
.section-title--white { color: var(--white); }

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}

/* ----- BOTTONI ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 165, 91, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--md { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.btn--lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

/* ----- HEADER ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all var(--t);
  padding: 0.75rem 0;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo img {
  height: 54px;
  width: auto;
  transition: filter var(--t), height var(--t);
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}
.header.scrolled .header__logo img {
  filter: none; /* Logo originale quando header bianco */
  height: 46px;
}

/* Nav desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__list {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .nav__list { display: flex; }
}
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--t);
}
.header.scrolled .nav__link { color: var(--gray-900); }
.nav__link:hover { color: var(--gold); }
.header.scrolled .nav__link:hover { color: var(--primary); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  display: none;
}
@media (min-width: 768px) {
  .nav__cta { display: inline-flex; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}
.header.scrolled .hamburger span { background: var(--gray-900); }
@media (min-width: 1024px) {
  .hamburger { display: none; }
}

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

/* Mobile menu open */
@media (max-width: 1023px) {
  .nav.is-open .nav__list {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: 88%;
    max-width: 360px;
    background: var(--white);
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    gap: 0;
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 99;
    animation: slideInRight 320ms ease;
  }
  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  .nav.is-open .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav.is-open .nav__link {
    display: block;
    color: var(--gray-900) !important;
    font-size: 1.125rem;
    font-family: var(--font-display);
    padding: 1.125rem 0;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin-top: 1.5rem;
    align-self: flex-start;
  }
}

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at top right, rgba(107, 61, 128, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(58, 20, 73, 0.6) 0%, transparent 65%),
    linear-gradient(140deg, #2A0E36 0%, #3A1449 35%, #4A1D5F 65%, #2A0E36 100%);
}

/* Composizione grafica */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero__lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  max-height: 380px;
  min-height: 220px;
}

/* Orbi luminosi sfocati */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(201, 165, 91, 0.45) 0%, transparent 70%);
  animation: heroFloat 14s ease-in-out infinite;
}
.hero__orb--2 {
  width: 520px;
  height: 520px;
  top: 35%;
  left: -180px;
  background: radial-gradient(circle, rgba(107, 61, 128, 0.55) 0%, transparent 70%);
  animation: heroFloat 18s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 320px;
  height: 320px;
  top: 55%;
  right: 8%;
  background: radial-gradient(circle, rgba(201, 165, 91, 0.28) 0%, transparent 70%);
  animation: heroFloat 16s ease-in-out infinite 2s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
}

/* Gru stilizzata in alto a destra */
.hero__crane {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 130px;
  height: 260px;
  opacity: 0.55;
  z-index: 1;
  animation: craneSwing 6s ease-in-out infinite;
  transform-origin: 50% 15%;
}
@keyframes craneSwing {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}
@media (max-width: 768px) {
  .hero__crane { width: 80px; height: 160px; top: 6%; right: 3%; opacity: 0.4; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: calc(var(--header-h) + 2rem) 1rem 6rem;
  max-width: 920px;
}

.hero__pre {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 2.25rem;
  max-width: 720px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--white);
  border-radius: 3px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(12px); }
}

/* ----- TRUST STRIP ----- */
.trust {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .trust { padding: 4rem 0; }
}

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

.trust__item {
  text-align: center;
}

.trust__num-wrap {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.trust__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust__plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--gold);
  margin-left: 0.15rem;
}

.trust__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ----- CHI SIAMO ----- */
.chi-siamo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .chi-siamo__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
  }
}

.chi-siamo__text p {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  color: var(--gray-800);
  line-height: 1.7;
}
.chi-siamo__text p:last-child { margin-bottom: 0; }
.chi-siamo__text strong { color: var(--primary); }

.chi-siamo__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.chi-siamo__image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.chi-siamo__image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 8px solid var(--gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0.18;
}
.chi-siamo__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(26, 26, 26, 0.85);
  color: var(--white);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

/* ----- DIREZIONE TECNICA ----- */
.direzione { background: var(--cream); }

.direzione__card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .direzione__card { padding: 4.5rem 4rem; }
}

.direzione__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 165, 91, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.direzione__inner {
  position: relative;
  max-width: 760px;
}

.direzione__eyebrow {
  color: var(--gold-light) !important;
}
.direzione__eyebrow::before { background: var(--gold) !important; }

.direzione__role {
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: -0.5rem 0 1.5rem;
}

.direzione__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
}

.direzione__cred {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .direzione__cred { grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
}

.direzione__cred li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}
.direzione__cred li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.direzione__note {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--white);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* ----- SERVIZI ----- */
.servizi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .servizi__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .servizi__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.servizio {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--t);
  height: 100%;
}
.servizio:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.servizio__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--t);
}
.servizio:hover .servizio__icon {
  background: var(--primary);
  color: var(--white);
}
.servizio__icon svg { width: 28px; height: 28px; }

.servizio__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--gray-900);
}

.servizio__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ----- CERTIFICAZIONI ----- */
.certs { background: var(--white); }

/* MOBILE: 3 badge piccoli in fila, no descrizioni, super compatti */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.cert-badge {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: all var(--t);
}
.cert-badge:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cert-badge__visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-badge__visual svg {
  width: 72px;
  height: 72px;
  max-width: 100%;
  display: block;
}

.cert-badge__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
  color: var(--gray-900);
}

.cert-badge__desc {
  display: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* TABLET+ */
@media (min-width: 768px) {
  .certs__grid { gap: 2rem; }
  .cert-badge { padding: 2rem 1.5rem; }
  .cert-badge__visual { width: 130px; height: 130px; margin-bottom: 1.25rem; }
  .cert-badge__visual svg { width: 130px; height: 130px; }
  .cert-badge__title { font-size: 1.125rem; margin-bottom: 0.625rem; }
  .cert-badge__desc { display: block; }
}

.certs__note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--gray-500);
}
@media (min-width: 768px) {
  .certs__note { margin-top: 2.5rem; font-size: 0.875rem; }
}

/* ----- BONUS FISCALI ----- */
.bonus { background: var(--cream); }

.bonus__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .bonus__inner { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
}

.bonus__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

.bonus__list {
  margin-bottom: 2rem;
  display: grid;
  gap: 0.625rem;
}
.bonus__list li {
  position: relative;
  padding: 0.625rem 0 0.625rem 2rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
}
.bonus__list li:last-child { border-bottom: none; }
.bonus__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.bonus__list strong { color: var(--primary); }

.bonus__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bonus__image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.bonus__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(74, 29, 95, 0.92);
  color: var(--white);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ----- REALIZZAZIONI ----- */
.progetto {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--gray-200);
}
.progetto:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
@media (min-width: 768px) {
  .progetto { margin-bottom: 5rem; padding-bottom: 5rem; }
}

.progetto__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
}
.badge--public {
  background: rgba(74, 29, 95, 0.1);
  color: var(--primary);
}
.badge--bonus {
  background: rgba(201, 165, 91, 0.18);
  color: var(--gold-dark);
}
.badge--private {
  background: var(--gray-100);
  color: var(--gray-800);
}

.progetto__year {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-500);
  font-style: italic;
}

.progetto__title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin-bottom: 0.375rem;
  color: var(--dark);
}

.progetto__loc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-weight: 500;
}

.progetto__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  max-width: 780px;
  margin-bottom: 1.75rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  grid-auto-rows: 180px;
}
@media (min-width: 640px) {
  .gallery { gap: 1rem; grid-auto-rows: 220px; }
}
@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
  }
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--gray-200);
}
.gallery__item--big {
  grid-column: span 2;
  grid-row: span 2;
}
@media (min-width: 1024px) {
  .gallery__item--big {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 29, 95, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* Icona zoom su hover */
.gallery__item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background: var(--white);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A1D5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--t);
  z-index: 2;
}
.gallery__item:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ----- AREE OPERATIVE ----- */
.aree__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .aree__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.area-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all var(--t);
}
.area-block:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.area-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 1rem;
}

.area-block__title {
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
  color: var(--gray-900);
}

.area-block__list li {
  font-size: 0.9375rem;
  color: var(--gray-700);
  padding: 0.375rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.area-block__list li:last-child { border-bottom: none; }

.area-block--cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
}
.area-block--cta .area-block__title { color: var(--white); }
.area-block--cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.area-block--cta .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.area-block--cta .btn--outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ----- PERCHÉ SCEGLIERCI ----- */
.perche__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .perche__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .perche__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.pillar {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  position: relative;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.875rem;
  opacity: 0.85;
}

.pillar__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--gray-900);
}

.pillar__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ----- CTA FINALE ----- */
.cta-final {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .cta-final { padding: 7rem 0; }
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.cta-final__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74, 29, 95, 0.94) 0%, rgba(58, 20, 73, 0.94) 100%);
  z-index: -1;
}

.cta-final__inner {
  text-align: center;
  max-width: 820px;
}

.cta-final__eyebrow {
  color: var(--gold-light) !important;
}
.cta-final__eyebrow::before { background: var(--gold) !important; }

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cta-final__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.cta-final__phone {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
}
.cta-final__phone a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cta-final__phone a:hover { color: var(--white); }

/* ----- FOOTER ----- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
}
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 3rem;
  }
}

.footer__col--brand .footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.875rem;
}
.footer__title--mt { margin-top: 1.25rem; }

.footer__col p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.footer__col a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--gold); }

.footer__small {
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.footer__list li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer__notes { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

/* ----- LIGHTBOX ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 8, 26, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  animation: fadeIn 240ms ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__figure {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  margin: 0 auto;
  display: block;
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-style: italic;
  font-family: var(--font-display);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__nav { width: 40px; height: 40px; }
}

/* ----- WHATSAPP FLOATING ----- */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--t);
  animation: pulse 2.4s ease-in-out infinite;
}
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ----- ANIMAZIONI SCROLL ----- */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Body lock when modal open */
body.no-scroll { overflow: hidden; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
}

/* Print */
@media print {
  .header, .float-wa, .hero__scroll { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
}
