/* ===================================
   STUDIO GUARINO - Main Stylesheet
   Replica di studioguarino.help
   =================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-light: #f4fef1;
  --green-text:  #6a8646;
  --teal:        #2f5d62;
  --teal-dark:   #1e3d40;
  --dark:        #1f1f1f;
  --gray:        #555;
  --white:       #ffffff;
  --border:      #e0e0e0;
  --font-sans:   'Montserrat', sans-serif;
  --font-serif:  'Merriweather', serif;
  --nav-h:       90px;
  --radius:      16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- TYPOGRAPHY --- */
h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.2; }
h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.3; }
h3 { font-family: var(--font-sans); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--gray); }

/* --- CONTAINER --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,93,98,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-link:hover,
.nav-link.active { color: var(--teal); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================
   HERO
   =================================== */
/* ===================================
   HERO
   =================================== */
.hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible; /* Per far sporgere gli elementi fluttuanti */
  background: var(--white);
  padding: 60px 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1; /* Sfondo fully visible come da screenshot */
  z-index: 1;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-left {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  height: 100%;
}
.hero-doctor-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 5;
  transform: translateY(35px); /* Salita per lasciare spazio sotto al piede */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  height: 100%;
}
.hero-right-content {
  flex-grow: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
}

.hero-tag {
  order: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-text);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  order: 2;
  color: var(--teal-dark);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-subtitle {
  order: 3;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero-description {
  order: 4;
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* 3 Features row */
.hero-features {
  order: 5;
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 0;
}
.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 8px;
}
.hero-feature-item:last-child {
  border-right: none;
  padding-right: 0;
}
.hero-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-text);
  background: #f0f7ee;
  flex-shrink: 0;
  border: 1px solid #e1eedc;
}
.hero-feature-icon svg {
  width: 18px;
  height: 18px;
}
.hero-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-feature-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0;
}
.hero-feature-desc {
  font-size: 0.72rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.3;
}

/* Actions button */
.hero-actions {
  order: 6;
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn-hero-primary {
  background: var(--green-text);
  color: var(--white);
  border: 2px solid var(--green-text);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.btn-hero-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--green-text);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(106, 134, 70, 0.06);
  transform: translateY(-2px);
}

/* Quote Card */
.hero-quote-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 24px 16px;
  width: 210px;
  position: absolute;
  left: 8px;
  top: 30px;
  z-index: 10;
  border: 1px solid #f0f0f0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-quote-card .quote-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--dark);
  margin: 0;
  font-weight: 500;
  padding: 10px 0;
}
.quote-leaves {
  position: absolute;
  width: 24px;
  height: 24px;
  color: var(--green-text);
}
.quote-leaves.tl {
  top: 8px;
  left: 8px;
}
.quote-leaves.br {
  bottom: 8px;
  right: 8px;
  transform: rotate(180deg);
}

/* Stats Bar */
.hero-stats-bar {
  position: absolute;
  bottom: -90px; /* Abbassata sotto il livello del piede */
  left: 24px;
  right: 24px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
  z-index: 6; /* Sopra a tutto */
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.hero-stat-item:last-child {
  border-right: none;
}
.hero-stat-icon {
  width: 44px;
  height: 44px;
  background: #f0f7ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-text);
  flex-shrink: 0;
  border: 1px solid #e1eedc;
}
.hero-stat-icon svg {
  width: 20px;
  height: 20px;
}
.hero-stat-text {
  display: flex;
  flex-direction: column;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--gray);
  margin: 0;
}
.hero-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0;
  line-height: 1.2;
}

/* RESPONSIVE PER HERO */
@media (max-width: 1024px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-left {
    order: 1; /* Foto della dottoressa in alto */
  }
  .hero-right {
    order: 2;
    text-align: center;
    justify-content: center;
  }
  .hero-right-content {
    align-items: center;
    max-width: 100%;
  }
  .hero-doctor-img {
    transform: translateY(0);
    margin: 0 auto;
    max-width: 380px;
  }
  
  /* Keep the quote card beside, not over, the face. */
  .hero-quote-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(50% - 190px);
    right: auto;
    top: 20px;
    width: 175px;
    padding: 16px 12px;
    border-radius: 16px;
    z-index: 12;
  }
  .hero-quote-card .quote-text {
    font-size: 0.7rem;
    line-height: 1.35;
    margin: 0;
    padding: 6px 0;
  }
  .hero-quote-card .quote-leaves {
    width: 18px;
    height: 18px;
  }
  .hero-quote-card .quote-leaves.tl {
    top: 6px;
    left: 6px;
  }
  .hero-quote-card .quote-leaves.br {
    bottom: 6px;
    right: 6px;
  }
  
  /* Features in 3 colonne con icone in alto e testi centrati sotto */
  .hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
  }
  .hero-feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
  .hero-feature-item:last-child {
    border-right: none;
  }
  .hero-feature-icon {
    margin-bottom: 8px;
  }
  .hero-feature-label {
    font-size: 0.8rem;
  }
  .hero-feature-desc {
    font-size: 0.68rem;
  }
  
  /* Bottoni CTA impilati in verticale */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 14px 20px;
  }
  
  /* Barra statistiche statica in griglia 2x2 con bordi interni ad incrocio */
  .hero-stats-bar {
    position: static;
    order: 3; /* Render after doctor and texts */
    margin-top: 40px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
  }
  .hero-stat-item {
    padding: 16px 12px;
    border-right: none;
    border-bottom: none;
    justify-content: flex-start;
  }
  .hero-stat-item:nth-child(1),
  .hero-stat-item:nth-child(3) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  .hero-stat-item:nth-child(1),
  .hero-stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .hero-stat-val {
    font-size: 1.1rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  /* Su cellulari stretti, riduciamo i margini e i font per tenere tutto compatto ed elegante */
  .hero-doctor-img {
    max-width: 320px;
  }
  .hero-quote-card {
    left: calc(50% - 160px);
    right: auto;
    top: 12px;
    width: 135px;
    padding: 12px 8px;
  }
  .hero-quote-card .quote-text {
    font-size: 0.6rem;
    line-height: 1.35;
    margin: 0;
    padding: 4px 0;
  }
  .hero-quote-card .quote-leaves {
    width: 14px;
    height: 14px;
  }
  .hero-quote-card .quote-leaves.tl {
    top: 4px;
    left: 4px;
  }
  .hero-quote-card .quote-leaves.br {
    bottom: 4px;
    right: 4px;
  }
  
  .hero-features {
    gap: 6px;
  }
  .hero-feature-item {
    padding: 0 4px;
  }
  .hero-feature-label {
    font-size: 0.72rem;
  }
  .hero-feature-desc {
    font-size: 0.6rem;
  }
  .hero-feature-icon {
    width: 32px;
    height: 32px;
  }
  .hero-feature-icon svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 400px) {
  /* Su telefoni piccolissimi le statistiche passano ad una sola colonna per evitare sovrapposizioni */
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
  .hero-stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  .hero-stat-item:last-child {
    border-bottom: none !important;
  }
}


/* ===================================
   SERVICES OVERVIEW
   =================================== */
.services-overview {
  padding: 100px 0;
  background: var(--green-light); /* Sfondo verde chiaro come nell'immagine */
}
.section-title {
  text-align: center;
  color: var(--dark);
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 colonne su desktop */
  gap: 20px;
  margin-bottom: 48px;
}
.service-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.service-card img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Mostra l'immagine completa senza ritagli */
  display: block;
  transition: transform var(--transition);
}
.service-card:hover img {
  transform: scale(1.03);
}
.services-cta { text-align: center; }

/* ===================================
   STUDIO SECTION
   =================================== */
.studio-section {
  padding: 100px 0 80px;
  background: #eff7fb; /* Azzurro chiarissimo per richiamare lo screenshot */
}
.studio-title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 48px;
}
.studio-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 24px;
}
.studio-col h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.45;
}
.studio-col p {
  font-family: var(--font-serif); /* Font serif per il copy delle colonne */
  font-size: 1rem;
  color: #333333;
  line-height: 1.75;
}
.location-section {
  padding: 80px 0;
  background: var(--white);
}
.location-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.location-copy h3 {
  margin-bottom: 16px;
}
.location-copy p {
  margin-bottom: 14px;
}
.location-copy a:not(.btn) {
  color: var(--teal);
}
.location-copy .btn {
  margin-top: 12px;
}
.location-map {
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.location-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}
.studio-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px; /* Spazio per le frecce ai lati */
  display: flex;
  align-items: center;
}
.studio-carousel-track-container {
  overflow: hidden;
  width: 100%;
}
.studio-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.studio-carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3); /* Mostra esattamente 3 slide alla volta */
  box-sizing: border-box;
}
.studio-carousel-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.carousel-btn:hover svg {
  fill: var(--white);
}
.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--dark);
  transition: fill var(--transition);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.prev-btn {
  left: 8px;
}
.next-btn {
  right: 8px;
}

@media (max-width: 900px) {
  .studio-carousel-slide {
    flex: 0 0 calc((100% - 20px) / 2); /* 2 slide alla volta su tablet */
  }
}

@media (max-width: 768px) {
  .studio-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .location-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .studio-carousel-wrapper {
    padding: 0 40px;
  }
  .prev-btn { left: 0; }
  .next-btn { right: 0; }
  .studio-carousel-slide {
    flex: 0 0 100%; /* 1 slide alla volta su mobile */
  }
  .studio-carousel-slide img {
    height: 200px;
  }
}

/* ===================================
   REVIEW SECTION
   =================================== */
.review-section {
  padding: 80px 0;
  background: var(--white);
}
.review-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--green-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.review-stars {
  font-size: 1.5rem;
  color: #f4b942;
  margin-bottom: 20px;
  letter-spacing: 4px;
}
.review-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}
.review-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 61, 64, 0.72);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   FOOTER (NEW LAYOUT)
   =================================== */
.footer {
  background: var(--green-light);
  border-top: 1px solid #d8eed2;
  padding: 60px 0 40px;
}
.footer-new-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top-row {
  display: flex;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid #e2f5dc;
  padding-bottom: 30px;
}
.footer-logo-box {
  flex-shrink: 0;
  width: 180px;
}
.footer-logo-img {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
}
.footer-top-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-copyright-line {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0;
}
.footer-copyright-line a {
  color: var(--teal);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-copyright-line a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Griglia per le colonne del footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 180px;
  gap: 32px;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0;
}
.footer-col-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -4px;
  margin-bottom: 4px;
}
.footer-col p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}
.footer-col p a {
  color: var(--teal);
  transition: color var(--transition);
}
.footer-col p a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* Colonna dei link */
.footer-links-col {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-links-col p {
  margin: 0;
}
.footer-links-col a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-text);
  transition: color var(--transition);
}
.footer-links-col a:hover {
  color: var(--teal);
}
.footer-links-col .sep-row {
  color: #c5dfbe;
  font-size: 0.85rem;
  user-select: none;
  margin: 2px 0;
}

/* ===================================
   PAGE HERO (per pagine interne)
   =================================== */
.page-hero {
  margin-top: var(--nav-h);
  padding: 80px 24px;
  background: var(--green-light);
  text-align: center;
}
.page-hero h1 {
  color: var(--dark);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   SERVIZI PAGE - EXACT PIXEL PERFECT LAYOUT
   =================================== */

.services-sections-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Full-width alternating background sections */
.service-section {
  width: 100%;
  padding: 56px 0;
  scroll-margin-top: calc(var(--nav-h) + 50px);
}

.service-bg-green {
  background-color: #F4FEF1; /* rgb(244, 254, 241) */
}

.service-bg-blue {
  background-color: #EFF8FF; /* rgb(239, 248, 255) */
}

/* Centered container with max width */
.service-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Horizontal 2-column layout */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}

/* Description Text Column */
.service-text-col {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
}

.service-text-col p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  color: #2c3e50;
  text-align: justify;
  margin-bottom: 12px;
}

.service-text-col p em {
  font-style: italic;
}

.service-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #1d1e20;
  margin-top: 14px;
  margin-bottom: 8px;
}

.service-list {
  margin: 6px 0 14px 20px;
  padding-left: 0;
  list-style-type: disc;
}

.service-list li {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2c3e50;
  margin-bottom: 8px;
  text-align: justify;
}

.service-list li strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1d1e20;
}

.service-callout {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1d1e20;
  margin-top: 14px;
  margin-bottom: 6px;
}

/* Button Centered to the Text Column */
.service-btn-wrap {
  text-align: center;
  margin-top: 24px;
}

.btn-service {
  display: inline-block;
  background-color: #0B9DD0;
  color: #FFFFFF !important;
  padding: 12px 34px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 157, 208, 0.28);
  transition: all 0.25s ease;
}

.btn-service:hover {
  background-color: #0984af;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 157, 208, 0.4);
  color: #FFFFFF !important;
}

/* Visual Column (Image + Quote) */
.service-visual-col {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-img-card {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 375 / 482;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  background-color: #ffffff;
}

.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-img-card:hover img {
  transform: scale(1.02);
}

/* Inspirational Quote under the image */
.service-quote {
  margin-top: 18px;
  margin-bottom: 0;
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  max-width: 270px;
  margin-left: auto;
  margin-right: auto;
}

/* Color rule: Quando il box è verde la scritta ispiratrice è blu e viceversa */
.service-bg-green .service-quote {
  color: #1580B0; /* Blue quote on green background */
}

.service-bg-blue .service-quote {
  color: #799B05; /* Green / olive quote on blue background */
}

.anchor-target {
  display: block;
  position: relative;
  top: calc(-1 * (var(--nav-h) + 50px));
  visibility: hidden;
}

/* Quick Jump Pill Navigation */
.services-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.services-nav-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.services-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.services-nav-scroll::-webkit-scrollbar-thumb {
  background: #d8dae0;
  border-radius: 4px;
}

.service-pill {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1e20;
  text-decoration: none;
  transition: all 0.2s ease;
}

.service-pill:hover {
  background: #0B9DD0;
  color: #ffffff;
  border-color: #0B9DD0;
}

/* Mobile & Tablet responsiveness */
@media (max-width: 860px) {
  .service-section {
    padding: 40px 0;
  }
  .service-row {
    flex-direction: column !important;
    gap: 28px;
  }
  .service-visual-col {
    order: -1;
    max-width: 250px;
  }
  .service-text-col p,
  .service-list li {
    font-size: 14.5px;
    text-align: left;
  }
  .btn-service {
    width: 100%;
    max-width: 320px;
  }
}

/* ===================================
   CHI SIAMO PAGE
   =================================== */
.team-section { padding: 80px 0; background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.team-card {
  background: var(--green-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}
.team-card-body { padding: 28px; }
.team-card-body h3 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.team-card-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-card-body p { font-size: 0.9rem; line-height: 1.7; }
.team-card-contact {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray);
}
.team-card-contact a { color: var(--teal); font-weight: 500; }

/* ===================================
   CONTATTI PAGE
   =================================== */
.contact-section { padding: 80px 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { color: var(--dark); margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-item-text p { font-size: 0.92rem; }
.contact-item-text strong { color: var(--dark); font-size: 0.88rem; display: block; margin-bottom: 2px; }
.contact-form {
  background: var(--green-light);
  padding: 40px;
  border-radius: var(--radius);
}
.contact-form h3 { color: var(--dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

/* ===================================
   BLOG PAGE
   =================================== */
.blog-section { padding: 80px 0; background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card-body h3 {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p { font-size: 0.88rem; line-height: 1.65; }
.blog-card-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}
.blog-read-more:hover { text-decoration: underline; }

/* ===================================
   PRIVACY / COOKIE PAGE
   =================================== */
.legal-section {
  margin-top: var(--nav-h);
  padding: 80px 0;
}
.legal-section .container {
  max-width: 860px;
}
.legal-section h1 { margin-bottom: 32px; }
.legal-section h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-section p { margin-bottom: 16px; }

/* ===================================
   WHATSAPP BUBBLE
   =================================== */
.whatsapp-bubble {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
  transition: transform var(--transition);
  cursor: pointer;
}
.whatsapp-bubble:hover { transform: scale(1.10); }
.whatsapp-bubble svg { width: 30px; height: 30px; fill: white; }

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* ===================================
   CHI SIAMO NUOVO LAYOUT
   =================================== */
:root {
  --blue-bg: #2b5f82;
}

.about-hero {
  padding: 60px 0;
  background: var(--green-light);
}
.about-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: stretch;
}
.about-hero-text-box {
  background: var(--blue-bg);
  border-radius: 20px;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-hero-text-box h1 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.about-hero-text-box p {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.about-hero-img-box {
  border-radius: 20px;
  overflow: hidden;
}
.about-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.team-profiles-section {
  background: var(--blue-bg);
  padding: 80px 0;
}
.profile-block {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.profile-block:last-child {
  margin-bottom: 0;
}
.profile-text-col h2 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}
.profile-subtitle {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 400;
}
.profile-list {
  color: var(--white);
  font-size: 1rem;
  list-style-position: outside;
  margin-left: 20px;
}
.profile-list li {
  margin-bottom: 8px;
}
.profile-img-col {
  width: 100%;
  max-width: 420px;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 auto;
}

.profile-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 769px) {
  .profile-block.reverse .profile-img-col { order: 2; }
  .profile-block.reverse .profile-text-col { order: 1; }
}
@media (max-width: 768px) {
  .about-hero-container, .profile-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-hero-text-box {
    padding: 40px 24px;
  }
  .profile-img-col {
    order: -1 !important;
  }
}
/* ===================================
   LIGHTBOX MODAL
   =================================== */
.lightbox-modal {
  display: flex;
  visibility: hidden;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Sfondo scuro semi-trasparente senza sfocatura GPU */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-modal.active {
  visibility: visible;
  opacity: 1;
}
.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  object-fit: contain;
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--white);
  font-size: 44px;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}
.lightbox-close:hover {
  color: var(--green-text);
  transform: scale(1.1);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); } /* 3 colonne per tablet */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-links-col {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
    border-top: 1px dashed #d8eed2;
    padding-top: 20px;
    justify-content: center;
  }
  .footer-links-col .sep-row {
    display: none;
  }
  .footer-links-col p {
    display: inline-block;
  }
  .service-block { grid-template-columns: 1fr; gap: 32px; }
  .service-block:nth-child(even) { direction: ltr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .footer-top-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-logo-box {
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-links-col {
    grid-column: span 1;
    justify-content: center;
  }
  .logo-img {
    height: 42px; /* Riduci altezza del logo per farlo entrare comodamente nella navbar mobile */
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(calc(-100% - var(--nav-h))); /* Nasconde completamente il menu in alto fuori dallo schermo */
    transition: transform var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999; /* Assicura che si sovrapponga correttamente alla pagina quando scende */
  }
  .nav-links.open { transform: translateY(0); }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); } /* 2 colonne per tablet verticali/cellulari */
  .blog-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 60px 24px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; } /* Mantieni 2 colonne ma riduci gap */
  .service-card { border-radius: 14px; }
}

/* ===================================
   LEGAL PAGES (Privacy, Cookies, Sitemap)
   =================================== */
.legal-section {
  padding: 140px 0 80px;
  background: var(--white);
}
.legal-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--teal-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}
.legal-section h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 32px 0 16px;
}
.legal-section p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 16px;
}
.legal-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
