/* ============================================================
   VIRDIS PONTEGGI — Modern Static Site
   Pure CSS, no frameworks
   ============================================================ */

/* ========== 1. DESIGN TOKENS ========== */
:root {
  /* Brand Colors */
  --c-blue:        #2B6CB4;
  --c-blue-hover:  #3a7fc9;
  --c-blue-dark:   #1e4e87;
  --c-navy:        #1c2836;
  --c-navy-dark:   #111c27;
  --c-dark:        #0d1520;

  /* Neutrals */
  --c-text:        #1e293b;
  --c-text-muted:  #64748b;
  --c-gray:        #94a3b8;
  --c-border:      #e2e8f0;
  --c-light:       #f1f5f9;
  --c-lighter:     #f8fafc;
  --c-white:       #ffffff;

  /* Typography */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Oswald', 'Arial Narrow', sans-serif;

  /* Container: content spans from 15% to 85% of viewport */
  --cx: 15vw;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s10: 5rem;
  --s12: 6rem;
  --s16: 8rem;

  /* Transitions */
  --t:      0.25s ease;
  --t-slow: 0.5s ease;

  /* Border radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;

  /* Shadows */
  --sh-sm:  0 2px 8px rgba(0,0,0,0.07);
  --sh-md:  0 4px 24px rgba(0,0,0,0.12);
  --sh-lg:  0 8px 40px rgba(0,0,0,0.20);
  --sh-xl:  0 20px 60px rgba(0,0,0,0.28);

  /* Z-index */
  --z-nav:   100;
  --z-modal: 200;
}

/* ========== 2. RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== 3. TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2.2rem); }

p { line-height: 1.75; }

/* ========== 4. LAYOUT ========== */
.container {
  width: 100%;
  padding-left: var(--cx);
  padding-right: var(--cx);
}

.section         { padding: var(--s12) 0; }
.section-sm      { padding: var(--s8) 0; }
.section-light   { background: var(--c-lighter); }
.section-white   { background: var(--c-white); }
.section-dark    { background: var(--c-navy); color: var(--c-white); }
.section-darkest { background: var(--c-dark);  color: var(--c-white); }

/* ========== 5. BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}
.btn-primary:hover {
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,108,180,0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--c-white);
  color: var(--c-navy);
  border-color: var(--c-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-outline-dark:hover {
  background: var(--c-navy);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* ========== 6. NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--s3) 0;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}

.navbar--scrolled {
  background: rgba(28, 40, 54, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
  padding: var(--s2) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 60px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.nav-logo img  { height: 100%; width: auto; }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--c-blue);
  transition: width var(--t);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { width: 100%; }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: calc(var(--z-nav) + 2);
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile full-screen drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--c-navy-dark);
  z-index: calc(var(--z-nav) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s6);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-slow);
}
.nav-drawer.is-open {
  pointer-events: all;
  opacity: 1;
}
.nav-drawer .nav-link {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.nav-drawer .nav-link::after { height: 3px; bottom: -4px; }

/* ========== 7. HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--c-white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 14, 28, 0.78) 0%,
    rgba(28, 40, 54, 0.62) 55%,
    rgba(10, 18, 32, 0.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s4);
  animation: heroReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-logo {
  height: 110px;
  margin-bottom: var(--s3);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.55));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.hero-rule {
  width: 72px;
  height: 1.5px;
  background: rgba(255,255,255,0.45);
  margin: var(--s2) 0;
}

.hero-cta {
  margin-top: var(--s4);
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== 8. SECTION: SEMPRE PIÙ IN ALTO ========== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
}

.stats-text h2 {
  color: var(--c-navy);
  margin-bottom: var(--s3);
}

.stats-intro {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-text-muted);
  margin-bottom: var(--s6);
  line-height: 1.8;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--c-border);
}
.stat-row:last-child { border-bottom: none; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
  min-width: 6ch;
}

.stat-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
}

.stats-image img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}

/* ========== 9. SECTION: SERVICES ========== */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s12);
  align-items: start;
}

.services-intro h2 {
  color: var(--c-navy);
  margin-bottom: var(--s3);
}
.services-intro p {
  color: var(--c-text-muted);
  font-size: 1rem;
  margin-bottom: var(--s6);
  line-height: 1.8;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--c-border);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1.5px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--t), padding-left var(--t);
}
.service-item:hover {
  color: var(--c-blue);
  padding-left: var(--s2);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text-muted);
  width: 2ch;
  flex-shrink: 0;
  transition: color var(--t);
}
.service-item:hover .service-num { color: var(--c-blue); }

.service-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}

.service-arrow {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  color: var(--c-blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t), transform var(--t);
  flex-shrink: 0;
  flex-grow: 0;
}
.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 10. SECTION: NUMBERS (Virdis in breve) ========== */
.section-numbers {
  background: var(--c-navy);
  color: var(--c-white);
}

.numbers-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s2);
}
.numbers-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--c-blue);
  margin: var(--s2) auto 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: var(--s8);
  border-radius: var(--r-md);
  overflow: hidden;
}

.number-cell {
  background: var(--c-navy);
  text-align: center;
  padding: var(--s6) var(--s4);
  transition: background var(--t);
}
.number-cell:hover {
  background: rgba(43,108,180,0.15);
}

.number-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.number-suffix {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.number-label {
  margin-top: var(--s2);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ========== 11. GALLERY CAROUSEL ========== */
.section-gallery {
  padding: 0;
  background: var(--c-dark);
  overflow: hidden;
}

.gallery-header {
  padding: var(--s6) 0 var(--s4);
  text-align: center;
}
.gallery-header h2 {
  color: var(--c-white);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.carousel {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--c-dark);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s6) var(--cx) var(--s4);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: var(--c-white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--c-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--t), transform var(--t);
  border-radius: 0;
}
.carousel-btn:hover {
  background: rgba(43,108,180,0.5);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn-prev { left: var(--s4); }
.carousel-btn-next { right: var(--s4); }
.carousel-btn svg { width: 22px; height: 22px; pointer-events: none; }

/* ========== 11b. LIGHTBOX (fullscreen gallery) ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-caption {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  text-align: center;
  padding: var(--s2) var(--s4);
  color: var(--c-white);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.lightbox-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--c-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
  z-index: 10001;
}
.lightbox-btn:hover {
  background: rgba(43,108,180,0.5);
}
.lightbox-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.lightbox-prev {
  left: var(--s4);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.05);
}
.lightbox-next {
  right: var(--s4);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}
.lightbox-close {
  top: var(--s4);
  right: var(--s4);
}
.lightbox-close:hover {
  transform: scale(1.05);
}
body.lightbox-open {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .lightbox {
    padding: var(--s2);
  }
  .lightbox-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-btn svg {
    width: 18px;
    height: 18px;
  }
  .lightbox-prev {
    left: var(--s2);
  }
  .lightbox-next {
    right: var(--s2);
  }
  .lightbox-close {
    top: var(--s2);
    right: var(--s2);
  }
  .lightbox-caption {
    bottom: calc(var(--s2) + 60px);
    font-size: 0.78rem;
    padding: var(--s1) var(--s3);
  }
}

/* ========== 12. CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s8);
  align-items: start;
}

.contact-form-col h2 {
  color: var(--c-navy);
  margin-bottom: var(--s4);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.form-group {
  margin-bottom: var(--s3);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-control::placeholder { color: var(--c-gray); }
.form-control:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(43,108,180,0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-submit { margin-top: var(--s2); }
.form-required {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: var(--s2);
}

/* Contact info card */
.contact-info-card {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
}

.map-wrapper {
  position: relative;
}

.contact-map {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

.map-open-link {
  position: absolute;
  bottom: var(--s2);
  right: var(--s2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.map-open-link:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ========== 13. MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s6) var(--s4);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--sh-xl);
  transform: scale(0.92);
  transition: transform var(--t);
  position: relative;
}
.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--s2);
  right: var(--s3);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--c-gray);
  cursor: pointer;
  line-height: 1;
  transition: color var(--t);
}
.modal-close:hover { color: var(--c-text); }

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--c-navy);
  margin-bottom: var(--s2);
}
.modal-body {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--s4);
}

/* ========== 14. FOOTER ========== */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--s12) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--s8);
  padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.footer-brand-logo .footer-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-brand-name .brand-top {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand-name .brand-bottom {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--c-white);
  margin-bottom: 4px;
}
.footer-contact-item a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
}
.footer-contact-item a:hover { color: var(--c-white); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s3);
  padding-bottom: var(--s1);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  display: block;
  transition: color var(--t), padding-left var(--t);
}
.footer-col ul li a:hover {
  color: var(--c-white);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) 0;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--s2);
  flex-shrink: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  transition: background var(--t), color var(--t);
}
.footer-social a:hover {
  background: var(--c-blue);
  color: var(--c-white);
}
.footer-social svg { width: 17px; height: 17px; }

.footer-created {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.footer-created a { color: rgba(255,255,255,0.55); }
.footer-created img {
  height: 18px;
  display: inline;
  vertical-align: middle;
}

/* ========== 15. STORIA PAGE ========== */
.storia-page {
  background: var(--c-navy);
  color: var(--c-white);
  padding-top: calc(80px + var(--s8));
  padding-bottom: var(--s12);
  min-height: 100vh;
}

.storia-intro {
  padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--s8);
}

.storia-intro h1 {
  color: var(--c-white);
  margin-bottom: var(--s2);
}

.storia-intro p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
  padding: var(--s8) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.timeline-item:last-of-type { border-bottom: none; }

.timeline-item:nth-child(even) .timeline-images {
  order: -1;
}

.timeline-era {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(43,108,180,0.15);
  border-left: 3px solid var(--c-blue);
  padding: 4px 14px;
  margin-bottom: var(--s3);
}

.timeline-text h2 {
  color: var(--c-white);
  margin-bottom: var(--s3);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.timeline-text p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
}

.timeline-images {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.timeline-images img {
  width: 100%;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.storia-actions {
  margin-top: var(--s8);
  display: flex;
  justify-content: flex-start;
}

/* ========== 16. SERVIZI PAGE ========== */
.servizi-page {
  background: var(--c-navy);
  color: var(--c-white);
  padding-top: calc(80px + var(--s8));
  padding-bottom: var(--s12);
  min-height: 100vh;
}

.servizi-intro {
  padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.servizi-intro h1 {
  color: var(--c-white);
  margin-bottom: var(--s2);
}
.servizi-intro p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
}

.servizi-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
  padding: var(--s10) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.servizi-item:last-of-type {
  border-bottom: none;
}

.servizi-item:nth-child(even) .servizi-img {
  order: -1;
}

.servizi-text {
  padding: var(--s4) 0;
}
.servizi-text h2 {
  color: var(--c-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.05em;
  margin-bottom: var(--s4);
  position: relative;
  padding-bottom: var(--s3);
}
.servizi-text h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 3px;
  background: var(--c-blue);
}
.servizi-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
}

.servizi-img img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  object-fit: cover;
  max-height: 400px;
}

.servizi-cta {
  padding: var(--s8) 0;
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--s4);
  transition: color var(--t), gap var(--t);
}
.back-link:hover {
  color: rgba(255,255,255,0.85);
  gap: 10px;
}
.back-link svg { flex-shrink: 0; }

/* ========== 17. PRIVACY POLICY ========== */
.privacy-page {
  background: var(--c-lighter);
  padding-top: calc(80px + var(--s8));
  padding-bottom: var(--s12);
}

.privacy-heading {
  color: var(--c-navy);
  margin-bottom: var(--s8);
}

.privacy-content {
  max-width: 820px;
  line-height: 1.85;
}
.privacy-content p {
  margin-bottom: var(--s2);
  color: var(--c-text);
}
.privacy-content b, .privacy-content strong {
  color: var(--c-navy);
  font-weight: 600;
}
.privacy-content a {
  color: var(--c-blue);
}
.privacy-content a:hover { text-decoration: underline; }

.privacy-separator {
  margin: var(--s6) 0 var(--s3);
  height: 0;
  border: none;
  border-top: 1px solid var(--c-border);
}

/* ========== 18. FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }

/* ========== 19. RESPONSIVE ========== */
@media (max-width: 1200px) {
  :root { --cx: 8vw; }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root { --cx: 5vw; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .stats-image { order: -1; }
  .stats-image img { max-height: 320px; }

  .services-layout {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .timeline-item:nth-child(even) .timeline-images { order: unset; }

  .servizi-item {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .servizi-item:nth-child(even) .servizi-img { order: unset; }
}

@media (max-width: 680px) {
  :root {
    --cx: 4vw;
    --s12: 4rem;
    --s8: 3rem;
  }

  .nav-links       { display: none; }
  .nav-toggle      { display: flex; }

  .service-name    { font-size: 1.3rem; }

  .numbers-grid    { grid-template-columns: repeat(2, 1fr); }

  .footer-top      { grid-template-columns: 1fr; }
  .footer-brand    { flex-direction: column; gap: var(--s4); }
  .footer-bottom   { flex-direction: column; text-align: center; }

  .carousel        { height: 52vh; }
  .carousel-caption { padding: var(--s3) var(--s4) var(--s2); }

  .storia-intro,
  .servizi-intro   { margin-bottom: var(--s2); }
}

@media (max-width: 400px) {
  .hero-title      { letter-spacing: 0.06em; }
}
